Connecting Tech Pros Worldwide Forums | Help | Site Map

XMLSocket in IE doesn't call javascript callback

Pradip Caulagi
Guest
 
Posts: n/a
#1: Mar 3 '08
Hello!

I have the following scenario. When the html page is loaded, it
creates an XMLSocket and sends some data over the socket to the
server. The server in return sends some xml back. Then XMLSocket
calls a javascript function with the data received. However, I have a
problem with the data received in IE. In particular, the server sends
xml of the following form -

<ls:xlate_group xmlns:ls="LS" xlate_group="LOBBY" language="en">
<ls:trans xmlns:ls="LS" name="XL_ALL" trans="All"/>
<ls:trans xmlns:ls="LS" name="XL_50" trans="&lt;= 0.50"/>
<ls:trans xmlns:ls="LS" name="XL_100" trans="&lt;= 1.00"/>
<ls:trans xmlns:ls="LS" name="XL_200" trans="&lt;= 2.00"/>
<ls:trans xmlns:ls="LS" name="name" trans="Name"/>
<ls:trans xmlns:ls="LS" name="seats" trans="Seats"/>
<ls:trans xmlns:ls="LS" name="seated" trans="Seated"/>
<ls:trans xmlns:ls="LS" name="XL_LOGOUT" trans="LOGOUT"/>
<ls:trans xmlns:ls="LS" name="XL_LAUNCH" trans="LAUNCH"/>
</ls:xlate_group>

IE6 receives the xml[1] but it does *not* call the javascript
callback. Where can I look or what am I missing?

The action script, briefly, is -

var socket = new XMLSocket();
socket.onData = function(src){
getURL("javascript:SocketOnData('"+src+"')");
}
socket.onConnect = function(success){
getURL("javascript:SocketOnConnect('"+success+"')" );
}
socket.onClose = function(){
getURL("javascript:SocketOnClose()");
}

Thanks,

Pradip

[1] - I know that the xml data from the server comes to socket.onData
'coz I put a debug text box logging src and I could see the xml data
in the text box.

Pradip Caulagi
Guest
 
Posts: n/a
#2: Mar 3 '08

re: XMLSocket in IE doesn't call javascript callback


On 3 Mar, 18:35, Pradip Caulagi <caul...@iiitb.ac.inwrote:
Quote:
Hello!
>
I have the following scenario.
Sorry, but if anyone is sending an email reply, can you please use
caulagi AT gmail DOT com?

Thanks,

Pradip
Closed Thread