Connecting Tech Pros Worldwide Help | Site Map

XMLSocket in IE doesn't call javascript callback

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 3rd, 2008, 12:45 PM
Pradip Caulagi
Guest
 
Posts: n/a
Default XMLSocket in IE doesn't call javascript callback

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.

  #2  
Old March 3rd, 2008, 12:45 PM
Pradip Caulagi
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.