Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic