Javascript Bug? Maybe Mozilla/HTML bug... Need some assistance.

Status
Not open for further replies.

THBMan

Ars Legatus Legionis
18,256
Subscriptor
OK, this is the one huge major milestone showstopping bug that is really pissing me off right now. I have a mostly dynamic web page that gets build and modified with javascript. When all that is used is javascript, everything works wonderfully cross-platform and cross-OS and nothing ever goes wrong (which I am amazed at, actually).

But when I put in default values and build part of the page on the server side and deliver it to the client, one specific function always crashes Mozilla.

Here is an example of the page I'm talking about: http://cdp.spycow.net/edit/ch/1985/11/18/

For reference, the javascript is here: http://cdp.spycow.net/dyncomic.js

I want to say this is a bug in my code so it can be fixed. I really do. But at this point, with it working half the time... I'm leaning more and more towards a Mozilla bug. This has happened in all versions of Mozilla I can/have run (including 0.9.9). I've completely run out of ideas.

($20 says it will be something stupidly simple that one of you picks out like nothing because you haven't been staring at the code for a week and a half.)

<div align="right">The Happy Blues Man  </div>
 

technophile

Ars Legatus Legionis
23,768
Originally posted by Keyan:
I tried it with Mozilla 0.9.9 on Win2k and it worked fine for me.

Looking at the code, I couldn't find anything obviously wrong. Have you tried the debugger (Tasks -> Tools -> JavaScript Debugger) in mozilla?
It crashed for me -- on the one the page claims won't. It works fine on the one the page claims will crash it, too.

Actually, after futher testing it's only the first line in Panel 2 that causes the problem. All lines in Panel 1 are fine and any lines in Panel 2 after line 1 are fine as well. I didn't try additional panels.

I would concur with the "Moz bug" theory as the browser should not crash even on pathological code (which yours clearly isn't). I submitted a couple of Talkbacks about the problem.
 

TheJet

Ars Praefectus
4,598
Subscriptor++
Well, I see the crash in Mozilla, but I also noticed that you can remove any lines which are added by the client-side javascript. Every time I try I get "Object expected".

Also, it seems that the error doesn't occur when the line type is "Narration", but rather when it's speech, so my guess would be that something isn't being setup correctly by the server-side code as compared to the client-side code.

TheJet
 

THBMan

Ars Legatus Legionis
18,256
Subscriptor
Looking at the code, I couldn't find anything obviously wrong. Have you tried the debugger (Tasks -> Tools -> JavaScript Debugger) in mozilla?

No... only because when I click on the link, it immediately crashes, thereby making the debugger just slightly useless. ;)

Well, I see the crash in Mozilla, but I also noticed that you can remove any lines which are added by the client-side javascript. Every time I try I get "Object expected".

Hehehe... oops. I forgot to change the function call in the Javascript-inserted HTML. That part's fixed.

The rest, I suppose, can just be written off as a Mozilla bug. Shame, really, although it's nice to know it's not my fault. Now if only IE supported position: fixed in CSS. :D

Thanks for your help.

<div align="right">The Happy Blues Man  </div>
 
Status
Not open for further replies.