XMLSocket in IE doesn't call javascript callback

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pradip Caulagi

    #1

    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_gro up xmlns:ls="LS" xlate_group="LO BBY" 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("javascr ipt:SocketOnDat a('"+src+"')") ;
    }
    socket.onConnec t = function(succes s){
    getURL("javascr ipt:SocketOnCon nect('"+success +"')");
    }
    socket.onClose = function(){
    getURL("javascr ipt:SocketOnClo se()");
    }

    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

    #2
    Re: XMLSocket in IE doesn't call javascript callback

    On 3 Mar, 18:35, Pradip Caulagi <caul...@iiitb. ac.inwrote:
    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

    Comment

    Working...