This is a bit of a weird problem. Unfortunately, I can't reproduce it
in a simple example, so I can only poke it out there and see if anyone
has seen something similar.
I have a script that uses XMLHttpRequest to communicate to a server.
All functionality follows the following form:
1. Use XMLHttpRequest to make a request to the server.
2. Wait for the response (using async requests and a handler)
3. If the response indicates an error, then stick up an alert() box.
4. If no error, reload a frame (the script is in the frameset).
Under IE, this works fine. Under Firefox (Mozilla/5.0 (Windows; U;
Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1) it works most
of the time.
On Firefox, there is one request that very predictably breaks things.
But the way things break is odd. That request works flawlessly; but
then *any* call to XMLHttpRequest's "open" method after that throws an
exception; control never reaches the server-side code that's being
called. Creating a new XMLHttpRequest object solves the problem.
The error message from Firefox is:
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.open]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://fengshui.mindiq.com/mindiq/ac.../takeCourse.js ::
dacMoveNext :: line 228" data: no]
This isn't really critical, since it does work now (I'm just creating a
new XMLHttpRequest object each time). However, I'm quite curious what
was broken the old way.
Thanks for any helpful comments,
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation