Async File Transfer in IE
-
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.
-
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.
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.