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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2009
    Posts
    173
    Thanks
    24
    Thanked 1 Time in 1 Post

    [Jquery] Make automatic file uploads with Jquery

    How can i make something that upload the file automaticaly.

    like the user clicks the <input type="file"/> and when he selects the file it uploads automaticaly without refreshing the page.

  • #2
    Gütkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    You can't upload "automatically". The user will always have to click the button (unless you use Flash). You can upload asynchronously, though, by submitting the form to a (hidden) iframe.

  • #3
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you for your post

  • #4
    Regular Coder
    Join Date
    Dec 2009
    Posts
    173
    Thanks
    24
    Thanked 1 Time in 1 Post
    Quote Originally Posted by venegal View Post
    You can't upload "automatically". The user will always have to click the button (unless you use Flash). You can upload asynchronously, though, by submitting the form to a (hidden) iframe.
    Do you have some link explaining that?
    Last edited by sorlaker; 04-11-2011 at 04:46 PM.

  • #5
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,785
    Thanks
    8
    Thanked 131 Times in 129 Posts
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #6
    Gütkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    Quote Originally Posted by sorlaker View Post
    Do you have some line explaining that?
    You give the form a target attribute, and put in the name of the hidden iframe. When the form is submitted, the (hidden) iframe will reload with the server response, but the main page won't.


  •  

    Posting Permissions

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