473,327 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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.
Mar 3 '08 #1
1 2479
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
Mar 3 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shawn | last post by:
I have an XML Socket Server running and I can easily get Flash to send from flash-to-xmlsocket-then-back-to-flash and vice-versa But what I want is to have an ASP page to take a small chunk of XML...
6
by: TS | last post by:
Im in a web page and call an asynchronous method in business class. the call back method is in the web page. When page processes, it runs thru code begins invoking the method then the page...
1
by: Bruce W.1 | last post by:
I want to put a live connection in a web page to periodically updated data. When the data changes, the server notifys the client and gives the new data. The client does not regularly refresh the...
2
by: Alani | last post by:
Hello All, I'm a new ASP.NET programmer and I want to create a custom control consist of two properties (Number1) and (Number2) and both of them are integers and default value = 0, now I'm...
3
by: KaNos | last post by:
Hi, "robot script pages" are html+javascript pages, can be played in aspx player. So in this tech, robot call aspx player's function (an interface is sheared) and wait a result synchronously with...
3
kovik
by: kovik | last post by:
I'd like to pass arguments from one function to another, but I can't seem to get it through my head to make it work. I wrote a function similar to PHP's array_map(), which runs all members of an...
1
by: Joey | last post by:
Hey guys, here's what I have... To help manage browser windows with session state on the server, I have some javascript code in one of my master pages that gets planted into most (content) pages...
40
by: Angus | last post by:
Hello I am writing a library which will write data to a user defined callback function. The function the user of my library will supply is: int (*callbackfunction)(const char*); In my...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.