Strange Behavior on Form w/Javascript
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Strange Behavior on Form w/Javascript

From: <amerar@iwc.net>
Date: Wed Jan 25 2006 - 22:31:14 CET

Hi All,

Here is a weird thing.

I was developing a small spplication here in the office. I downloaded
an interesting script from here:
http://simplythebest.net/scripts/DHTML_scripts/dhtml_script_120.html

Basically it gives cool pop-up info messages during a MouseOver event.

The script basically works fine. However, I have a form where users
can enter new information and it stores it in a MySQL database. Once
it is done, the CGI script re-calls the same routine to re-draw the
page with the new information on it, including the new MouseOver text.

If however, the user clicks anywhere on the screen, even in whitespace,
the Javascript routine breaks giving me either some type of Length
Error or a Missing ";" error.

What the heck? I do not even know where to start looking, and was
wondering if someone would be kind enough to help me through this
thing. I do not even know what code to post, since it is a bunch of
code.......

Please advise......and thanks in advance.

Arthur
Received on Tue Feb 7 21:23:11 2006