ajax example prob

  • Thread starter Thread starter dileep
  • Start date Start date
D

dileep

I am new to Ajax and i found some good tutorials from the net.but when
downloaded the basic sample examples and try to execute i get the erro
"specified file not found", even though the files are placed in th
same folder itself.i checked the whole code again and again but coul
not do anything.Can any one please help me out with this.
Is it necessary to have a separate server to execute these examples a
i have just downloaded the examples into one folder and trying t
execute??????
The part of code present in the example is :


function returnXML() {
if (http_request.readyState == 4) {
if (http_request.status==200) {
var xmldoc = http_request.responseXML;
displayContents(xmldoc);
} else {
alert('specified file not found.');
}

Can anyone please help!!!!


Thank


-
dilee
 
Ajax is basically an asynch callback mechanism. You build a method on the
server side that has an attribute that tells the server it will be used as a
"web method" (basic web service folded into the code behind/beside). You then
call that method.

When the "file not found" error shows up (at least in the instances I have
seen), either the method is missing, the Ajax call is aimed wrong or the
project is not compiled.

You can debug to an extent and at least trace enough of what is happening to
eliminate some possibilities.

Having not downloaded the sample in question, I can only guess at what is
happening.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top