www.webdeveloper.com
Results 1 to 1 of 1

Thread: IE Upload Form "target"

  1. #1
    Join Date
    Dec 2005
    Posts
    2,984

    IE Upload Form "target"

    Forget all the Javascript on this site, it's the underlying basic HTML problem that I don't understand.

    There's two ways to pull off an "AJAX" file upload (without using flash) that I know of.

    1) Put the whole upload form in an iFrame (and remove the border so it doesn't actually look like an iFrame)

    or

    2) Put a hidden iFrame on the page and set the "target" attribute of the upload form to the name of that iFrame.

    I'm using the second method on: http://hnl.jakswebdesign.com

    The problem is, it doesn't work at all in Internet Explorer (but chrome, safari, opera and firefox are good).....can anybody shed some light on this? The thing is though, it does at least APPEAR to work because when I don't select a file and push upload, then you can see the iFrame below refresh (I have set it to display: block for debugging) and say "No file selected" which is out put from the upload script, yet the file never uploads when one is selected....


    EDIT: Looks like the only option is option #1....just noticed on w3schools that the target attribute on form is deprecated, I'm assuming that's why it's not working in IE
    Last edited by aj_nsc; 01-12-2011 at 07:12 AM.
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...
    awesome.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles