Connecting Tech Pros Worldwide Help | Site Map

why do we get this error This XML file does not appear to have any style information

Newbie
 
Join Date: Sep 2006
Posts: 2
#1: Nov 20 '06
Hi

I am using the AJAX to call a method on the server which sends a
mail to the user.

my code if(status == 200) is evaluating to false yet the mail is
delivered. But because of the above status I am un able to display the
message to the user. Do any one hava an idea how to access
responseText or ResposeXML without status=200 because my prime target
is to display messages in the user interface.

I am returning action messages from my class, these action messages
need to be displayed in the user intrface. I am using spanElements and
replaceExistingElements to show these messages.
The problem is that the "req.status" is not becoming 200 in the
following code:

if (status == "ok" || status == "OK" || status == 200) { // OK response
reached now we can process the response
//Split the text response into Span elements
spanElements =
splitTextIntoSpan(req.responseText);
//Use these span elements to update the page
replaceExistingWithNewHtml(spanElements);
}
else {
alert("Problem with browser response:\n Response status "
+ req.statusText);
}

so, I am getting the alert even when the email is actually send.

any suggestions are welcome.

thanks:
Newbie
 
Join Date: Sep 2006
Posts: 2
#2: Nov 20 '06

re: why do we get this error This XML file does not appear to have any style information


I have changed my java class to return a different path(I am using struts), Now the status is becoming 200 but I am getting this error.

This XML file does not appear to have any style information associated with it. The document tree is shown below

Can any one please tell me why is it so.
Reply