Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- How do I de-bug my javascript? Pop-up windows not popping up!


moonbiter - 8:33 pm on Jun 27, 2002 (gmt 0)


it looks like you are missing about 50 semicolons

Well, since javascript implies a semicolon at the end of a line, this is not really the problem (although you are right, it would be good practice to terminate her statements with semicolons).

Still, the problem here is that she is not unescaping her quotes in her descriptions.

Anywhere you have something like:

desc = "And she said to me "woo hoo!" and jumped up and down"

you need to have it like:

desc = "And she said to me \"woo hoo!\" and jumped up and down"

Actually, this is a very verbose and repetitive script, and I can't help but think it could be done in a more elegant fashion. Maybe I could get a little time ...


Thread source:: http://www.webmasterworld.com/javascript/145.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com