I hate to bug you guys with more of my problems but IE is trying to make me climb my walls for the past several hours...
I thought I just explain the problem and if it sounds familiar I could get some clues on what to search for.
I haved used a simple XhttpRequest, POST method, for a good while now, and it worked fine both in IE and FF.
Now I wanted to use the same XR function again in another function, on the same page:
The html string is returned as a js var and is eval'd, which js then picks up and prints out.
All functions are run on the same page.
The first function (the anonymous one) works in all browsers IE, FF and Opera. And all is good. The second function however only works in FF and Opera; IE is giving me some weird vibes.
I've used bugzilla, venkman and operas debugger, but none of them gave any error messages, and I don't know where to look besides that.
IE debugger higlights three instances in the code and tells me that an unexpected error has occured etc, but it doesn't provide any further (useful) information. I have however "pin pointed" the problem down to the last line in the second function, and it is one of the weirdest problems I have encountered hitherto.
The two variables that are passed back from PHP to the JS are safely returned. One of them however is, how should I put it, twisted and turned to something evil; the second variable is suppose to be something like this:
[HTML]
<element1>
<element2>
<element3>(...) </element3>
<element3>(...) </element3>
<element3>(...) </element3>
</element2>
</element1>
[/HTML]
But only element 1 and 2 are returned ??? !!! I don't get it?! Why?
And why can't explorer print that as is? Why does it respond with a fatal error?
I'm going nuts over here... Why doesn't FF and Opera, or Venkman tell me anything?
Forgot: the error occurs when the god forsaken js var (which contains basic html elements) is trying to replace the innerHTML of another element on the page.
I thought I just explain the problem and if it sounds familiar I could get some clues on what to search for.
I haved used a simple XhttpRequest, POST method, for a good while now, and it worked fine both in IE and FF.
Code:
function XR( uses POST ) // called form ajax.js
document.onchange = function(){ does stuff, then calls XR and sends data back to database; database returns a string containing basic html } // called from sendStuff.js
Code:
function A() { does some stuff, then calls XR and sends more stuff back to database; database returns a string containing basic html
All functions are run on the same page.
The first function (the anonymous one) works in all browsers IE, FF and Opera. And all is good. The second function however only works in FF and Opera; IE is giving me some weird vibes.
I've used bugzilla, venkman and operas debugger, but none of them gave any error messages, and I don't know where to look besides that.
IE debugger higlights three instances in the code and tells me that an unexpected error has occured etc, but it doesn't provide any further (useful) information. I have however "pin pointed" the problem down to the last line in the second function, and it is one of the weirdest problems I have encountered hitherto.
The two variables that are passed back from PHP to the JS are safely returned. One of them however is, how should I put it, twisted and turned to something evil; the second variable is suppose to be something like this:
[HTML]
<element1>
<element2>
<element3>(...) </element3>
<element3>(...) </element3>
<element3>(...) </element3>
</element2>
</element1>
[/HTML]
But only element 1 and 2 are returned ??? !!! I don't get it?! Why?
And why can't explorer print that as is? Why does it respond with a fatal error?
I'm going nuts over here... Why doesn't FF and Opera, or Venkman tell me anything?
Forgot: the error occurs when the god forsaken js var (which contains basic html elements) is trying to replace the innerHTML of another element on the page.
Comment