MochiKit, IE 7.0, doSimpleXMLHttpRequest

5 views
Skip to first unread message

Yin

unread,
Jan 8, 2007, 1:48:01 PM1/8/07
to TurboGears
I've written a Turbogears application that uses Mochikit to call
doSimpleXMLHttpRequest.

In Firefox, the callback returns an XMLHttpRequest object and the text
I am returning from the kid template is rendered in the view. (working
as expected)

In Internet Explorer, the callback returns an object (not an
XMLHttpRequest) that is empty and thus no text is rendered. (not
working as expected)

After tinkering, here's what I know:
1. the xmlhttprequest is sent by both browsers.
2. the controller for the request is processed by both browsers.
3. the callbacks are called by both browsers (verfied by an embedded
alert statement).
4. the rendered view for both browsers can be updated with arbitrary
text as long as the text update is not the req.responseText return
container. Thus getElement('stuff1').innerHTML ="1" works.
getElement('stuff1').innerHTML = req.responseText does NOT.
3. firefox returns the xmlhttprequest container with the corresponding
responseText.
4. ie does NOT return the xmlhttprequest container (as verfied using
an alert statement for the req object).

Any help would be appreciated.
Thanks.

Reply all
Reply to author
Forward
0 new messages