Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Async File Transfer in IE

Async File Transfer in IE

Scheduled Pinned Locked Moved Web Development
jsonjavascripthtmlsysadminquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mmuttmax
    wrote on last edited by
    #1

    Firefox (not sure which version it started) supported a javascript method on the 'input' 'type=file' (you know the file browser). Actually I think there are two methods that do similar things... that allow you to upload the raw bytes from the file loaded from the input after the file has been selected. The one I use is getAsBinary() I don't believe IE7 supported anything like this, but does IE8 have something similar? If you don't know then is there a site similar to what firefox has where IE list all their javascript API support. Really would like to get rid of the IFrame hack to support IE. The Firefox section of the code is nice and clean requires nothing more than the basic html and javascript and is only a matter of parsing the request headers on the server to get the image from the http request. :) In IE it's a bunch of crazy IFrame (display set to none) post and if you want info back from the server having the IFrame send the info back to the original page... all just to simulate an async call when actually IE wants to do a full post back.:mad: This is for an internal site and right now only needs to support latest versions of Firefox and IE. Thanx for any responses.

    A 1 Reply Last reply
    0
    • M mmuttmax

      Firefox (not sure which version it started) supported a javascript method on the 'input' 'type=file' (you know the file browser). Actually I think there are two methods that do similar things... that allow you to upload the raw bytes from the file loaded from the input after the file has been selected. The one I use is getAsBinary() I don't believe IE7 supported anything like this, but does IE8 have something similar? If you don't know then is there a site similar to what firefox has where IE list all their javascript API support. Really would like to get rid of the IFrame hack to support IE. The Firefox section of the code is nice and clean requires nothing more than the basic html and javascript and is only a matter of parsing the request headers on the server to get the image from the http request. :) In IE it's a bunch of crazy IFrame (display set to none) post and if you want info back from the server having the IFrame send the info back to the original page... all just to simulate an async call when actually IE wants to do a full post back.:mad: This is for an internal site and right now only needs to support latest versions of Firefox and IE. Thanx for any responses.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      This might be a nonstandard method. I am using IFrame for file Upload.. I dont know if IE8 does, but I would surely check this. You can use Flash object to upload files easily too. :cool:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups