• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bad javascript behavior  RSS feed

 
Manny Garcia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying to figure out an odd, (very) intermittent problem on an exiting jsp. There's a page with a ton of javascript on it (really, a ton). And most of the time it works fine. But today when someone hit the page from another of our pages, the javascript itself was displayed in the browser as opposed to the results of the javascript. It is as though the javascript was not rendered, but taken literally and displayed as such.

I have a screen shot of what happened that I'm working from because I can't reproduce the problem myself.

Incidentally, the problem occurred on an IE 6 browser.

Does anyone have any general ideas of the sort of things that can cause this sort of weird behavior?

Regards,

Manny
 
Edisandro Bessa
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well man, based on your comments it's really hard to define a well fixed guideline you could use to find out your problem's root cause.

However, if I was you, I would start checking whether this problem happens only on such that specific computer or whether this problem happens on any computer wich has IE6 installed.

This approach would help you to close your "universe".

After that, I could consider some kind of problem created by the information being treated by the jsp page. I mean, supposing you have some kind of <cut> instruction which prints some contents from a database that has for example the less than (<) or grater than (>) character inside which when mixed with the html code could cause rendering problems.

I hope that helps.
Good luck on your error tracking.

Edisandro.
[ May 23, 2007: Message edited by: Edisandro Bessa ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
144
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might also be a good opportunity to refactor the page to use modern object-oriented JavaScript techniques to remove a lot of that goo from the pages.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!