473,569 Members | 3,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Mar 3 '08 #1
1 2498
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
1615
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 and send it to an XML Socket Server so the server can post the information to a client running a flash file. Is this possible? And if so how do I do...
6
1817
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 unloads. When the callback method is raised, only the method in the web page is run and the page never refreshes, it seems it all happens on the server...
1
4589
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 page. The client responds to server-side events only. The screen display changes without any user interaction. An application like this might...
2
2501
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 using callback technique so I can change those two proprties via ChangeNumber1 and ChangeNumber2 functions. what happens is that when I change the...
3
3588
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 a javascript method. I try it with GetCallbackEventReference but this tech works async. Could I use a javascript function with a sync call ?...
3
1465
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 array through a callback (function). It's layout is: ArrayMap: function(callback, array ]); If it wasn't for the need of extra arguments, I'd simply...
1
2014
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 on my site... <script type='text/javascript'> var sessionTimer; function StartSessionTimer() {
40
2311
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 libary do I create a function where user passes this callback function? How would I define the function?
0
2099
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 callback.setHandler1(callback1) this only seems to affect pythons ability to trigger an "event" in c. PyObject *Handler is always NULL even after I call...
0
7619
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7930
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.