Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-14-2012, 06:55 AM   PM User | #1
fael097
New Coder

 
Join Date: Mar 2010
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
fael097 is an unknown quantity at this point
crop image on the fly?

I'm doing a blog post form in php, and one of the fields is an image upload to use as a thumbnail. the image will also be uploaded on it's original size to be displayed on the post.

I'm gonna use something like this to crop: http://www.webmotionuk.co.uk/jquery/...pload_crop.php

problem is I want everything to be sent when the user press "submit", so I needed that crop thing to open on a new window whenever the user selects an image on the input.

how could I do so?

thanks in advance!
fael097 is offline   Reply With Quote
Old 04-14-2012, 04:18 PM   PM User | #2
MarPlo
Regular Coder

 
Join Date: Mar 2011
Posts: 145
Thanks: 0
Thanked 20 Times in 20 Posts
MarPlo is an unknown quantity at this point
Hi,
Try add an "onchange" in that input tag, to open the page you want when the user selects an image.
Something like this:
Code:
<input type="file" name="a_name" onchange="window.open('page_url')" />
__________________
MarPlo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:52 PM.


Advertisement
Log in to turn off these ads.