
navigator
New User
Apr 21, 2003, 4:04 PM
Post #1 of 1
(45662 views)
|
An error is writing to my code...newbie
|
Can't Post
|
|
Greetings! I am very familiar with the Gossamer Threads Links2, and can manage some perl, but I have not done anything with js. I am using a guestbook that was written to go with Links, and it uses js for adding smilies. A small piece of code goes into the head of the file: <script language="JavaScript1.2" type="text/javascript"> <![CDATA[ function addSmilie(smilie) { document.addform.Entry.value+=smilie; } ]]> </script> When I try to use the guestbook, it will not add the new entry, but instead I see this if I look in the code (it's writing to my code!): <script language="JavaScript"> <!-- function SymError() { return true; } window.onerror = SymError; //--> </script> I have used this thing beforre, and it worked, so I'm not sure why it dosen't now? I have set my pages to XHTML Transitional, if that makes any difference. See the problem here: http://theonetruechurch.com/cgi-bin/links/lgb.pl?action=add I'm sure someone who knows their javascript can figure it out pretty quick, but I have no idea where to start! Attached is the code for the add page. Thanks! Navigator (BTW, was referred here from this thread at the GT forums.)
|