-
November 21st, 2006, 03:02 PM
#1
[Help!]:javascript/xml from cdrom
Am working on a javascript/xml project that should run off a cd-rom.
With firefox "CdRomDrive:\index.html" runs fine and loads all the data from the xml file in the browser. Using Internet explorer 6, "CdRomDrive:\index.html" doesn't load the data to the browser.
However, "http://localhost/myProject/index.html" works fine with both browsers but this is not helpful since it is going to be run off the cdrom.
javascript code:
if (window.XMLHttpRequest)
{
this.req=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
this.req=new ActiveXObject("Microsoft.XMLHTTP");
}
if (this.req){
try{
var loader=this;
this.req.onreadystatechange=function(){
loader.onReadyState.call(loader);
}
//The problem begins here
this.req.open(method,url,true); //alert(url);
this.req.send(params);/*debugging shows params object empty*/
}catch (err){
this.onerror.call(this);
}
}
-Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|