codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  XMLHttpRequest returns 404 on Php files  urbanvintner at 07:34 on Friday, September 24, 2010
 

any ideas why? It was working for both html and php and then spontaneously decided to stop working, but just for php (with or without query strings). I don't even remember changing this function before it stopped working. Here's my code. Website can be viewed here

function load(url) {
document.getElementById("frame1").innerHTML = ' Fetching data...';
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
} else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
if (req != undefined) {
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
document.getElementById("frame1").innerHTML = req.responseText;
if(url=="event.html"){
gotoframe(99);
thisMovie("menu").HTMLtojava();
}
dhtmlHistory.add(url, document.getElementById("frame1").innerHTML)
} else {
document.getElementById("frame1").innerHTML="Error:" + req.status + " - " +req.statusText;
dhtmlHistory.add("Error:"+ req.status, document.getElementById("frame1").innerHTML)
}
}
}
req.open("GET", url, true);
req.send("");
}
}









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  XMLHttpRequest returns 404 on Php files
•  Re: Save up to 80% on SSL Certificates, RapidSSL Certificate @ $ 11.00/yr.
•  Re: horizontal scroll bar for drop down list box
•  IFRAME question
•  Re: Need hosted_button_id value from PayPal generated code
•  Re: need to enable a text area when the dropdown menus value is more than 0
•  Re: orphan files (owner account deleted in linux but files exists)
•  How to create and Edit IIS Virtual directory programmaticaly
•  Re: Need Javascript Multiple sidebar menu with sliding effects


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010