drewbe121212
Sep 9th 2006, 11:43 am
Hello All! I got bored and am making an AJAX chatroom.
I set a window interval for every second to check for new messages on the server. My only one question is that every once in a while an exception is being thrown.
the exception message is:
Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: http://www.agoradesk.com/includes/clientjavascript/chat.js :: getChatMessages :: line 81" data: no]
I can assume this is because something is timing out or data is not being retrieved or something along the lines. Does anyone else have a suggestion or a way to catch this exception?
I set a window interval for every second to check for new messages on the server. My only one question is that every once in a while an exception is being thrown.
the exception message is:
Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: http://www.agoradesk.com/includes/clientjavascript/chat.js :: getChatMessages :: line 81" data: no]
I can assume this is because something is timing out or data is not being retrieved or something along the lines. Does anyone else have a suggestion or a way to catch this exception?