|
Mailing Lists
|
Home /
Groups /
Ajax
Why can make it work
Author: Joaquin Henriquez (MI/EEM)
Short Link: http://www.houseoffusion.com/groups/ajax/thread.cfm/threadid:1415#4445
I have these:
xmlResponse = xmlHttp.responseXML;
// obtain the document element (the root element) of the XML structure
xmlDocumentElement = xmlResponse.documentElement;
// get the text message, which is in the first child of
// the the document element
StatusProcess = xmlDocumentElement.firstChild.data;
// update the client display using the data received from the server
document.getElementById("divMessage").innerHTML =
'<i>' + StatusProcess + '</i>';
// restart sequence
if (StatusProcess == 1)
{
document.getElementById("divMessage").innerHTML ="entra if";
}
Bu the code doesn't go inside the if. Why is that? In the innerHTML
outside the if I have a value of 1.
Joaquin
|
May 20, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||