I will try. Right now it the code that wires up all the network events looks liek this....
onload = function() {
// set up shell.
var output = $('chat_data');
// set up stomp client.
stomp = new STOMPClient();
stomp.onopen = function() {
//output.insert({"top" : "Transport openned"});
};
stomp.onclose = function(code) {
output.insert({"top" : "Transport closed (code: " + code + ")"});
};
stomp.onerror = function(error) {
alert("onerror: " + error);
};
stomp.onerrorframe = function(frame) {
alert("onerrorframe: " + frame.body);
};
stomp.onconnectedframe = function() {
output.insert({"top" : "Connected to chat room"});
};
stomp.onmessageframe = function(frame) {
eval(frame.body);
//output.insert({"top" : frame.body});
};
stomp.connect('localhost', 61613, randomUUID(), '');
setTimeout("stomp.subscribe('/channel/1', {exchange:''})",5000);
};
What exactly would I be adding? Sorry to be spoon fed. I'm just starting to learn about JS. I'm not clear if this is an unload event for the document, or the stomp connection.
It's frustrating that IE is so lame. Everything appears to work great in several other browsers.
A bit off topic but I heard MS may use a different rendering engine for IE 8, and they may choose an open source one. If they do, I hope this means IE will be more pleasant to work with when it comes to HTML, CSS and JS.