Click to See Complete Forum and Search --> : Javascript in IE & Opera error?


bpat1434
04-17-2006, 10:26 PM
Hi all. Having some trouble with javascript.

IE and Opera just don't seem to want to work :(

Here's the code I'm running:
Link to JS (http://phpbuilder.bpatterson.net/highlight.php?p=./articles.js)

Now, this will get an XML output of something like:
Link to XML (http;//phpbuilder.bpatterson.net/articles.php?a=home)

And the final layout should look like:
Link to View (http://phpbuilder.bpatterson.net/index.html)

Now, if you view in Firefox it runs fine. The JS gets the XML output, parses and updates as expected. In IE and Opera, nothing changes, and it never stops "loading". IE gives an error on line 50 character 4 which is right in the middle of a document call... not sure what's going on....

Anyone? Anyone?

bpat1434
04-18-2006, 11:04 PM
24-hour *bump*

Anyone?

JPnyc
04-18-2006, 11:44 PM
I wish I had an answer for ya. I haven't had need to do that much with AJAX, so the nuances from browser to browser wouldn't be known to me.

bradgrafelman
04-18-2006, 11:50 PM
Wish I could help debug stuff in IE, though I've screwed up my XML in IE ages ago and never found a fix. No AJAX/XML stuff works in IE for me... I always get "Error: Automation server can't create object"

bpat1434
04-18-2006, 11:50 PM
it's not really the ajax... it's more of the JS not working. I'm getting errors in the JS but only in Opera and IE....

Can anyone test this with Konquerer and/or Safari?

bradgrafelman
04-18-2006, 11:52 PM
It must hit the XML stuff before the error you're getting then, because that's where IE dies for me (line 31 char 3)

And... apparently Opera doesn't even want to give me an error. Heh... *shrug*

bpat1434
04-19-2006, 03:04 AM
yeah... opera gives no error... but I think that once i get the IE error worked out... Opera will start to work....

Stupid Opera/IE errors.....

WHY WON'T YOU WORK YOU SON OF A MONKEY!?!?!?!?!



Turns out that the response is not an object that IE likes... not sure why.....
I've added plenty of debugging output on the page....

Can anyone think of anything?