Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Regular Coder
    Join Date
    Mar 2011
    Posts
    148
    Thanks
    0
    Thanked 20 Times in 20 Posts
    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')" />


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •