aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes VBScript IE Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "VBScript IE Error "The download of the specified resource has failed"" Watch "VBScript IE Error "The download of the specified resource has failed"" New topic
Author

VBScript IE Error "The download of the specified resource has failed"

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi,

Basically I am trying to upload a file using VBScript + AJAX in the client browser and the uploaded file will be stored on the server using CGI + PERL.

When I select a file from my local machine and submit the page I am getting an IE VBScript error "The download of the specified resource has failed". I enabled all the settings in Tools->Internet Options->Security Tab->Internet Zone. All the I changed the Windows Registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000566-0000-0010-8000-00AA006D2EA4} to 0 but no avail. I am using Windows XP Service Pack2 and IE 6.0.

Below is the script that is causing problem and the VBScript error comes at the line "xmlhttp.Send sData".





Please suggest.



Thanks.


RR Kumaran
SCJP 1.4
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I do not think you can upload a file using the XMLHttpRequest object since it is a big security risk.

Eric
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi Eric,

Thank you for the response. Basically I am looking for some piece of code/script that will help me in uploading a file from browser to cgi+perl running on server. Can you please redirect me to such code that uses javascript/vbscript.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: VBScript IE Error "The download of the specified resource has failed"