Hi,
I'm running into a problem with IE8 and responseXML. Code follows :
var url = 'http://example.com/myfile.php';
function update_parent() {
var root = 1;
var myAjax = new Ajax.Request(url,
{
method: 'get',
parameters: {parent_id: root},
onComplete: parent_response
}
);
}
// -------------------------------------------------------
function parent_response(originalRequest) {
var domObj = originalRequest.responseXML;
alert(domObj);
}
This is all fired off via a <body onload='update_parent'>
This works perfectly in Firefox. However, in IE8, it is failing with no
errors. The alert in parent_response() does not get triggered in IE8.
If I change the onComplete: to read :
onComplete: parent_response()
Then the alert triggers, but it pops up as undefined. How do I properly
handle this so it works cross-browser? ie, what object should I be
sending to get to the responseXML value?
Thanks,
--
---------------------------
Jason Frisvold
[email protected]
---------------------------
"I love deadlines. I like the whooshing sound they make as they fly by."
- Douglas Adams
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---