CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Other Programming Languages: Javascript:
An error is writing to my code...newbie

 



navigator
New User

Apr 21, 2003, 4:04 PM

Post #1 of 1 (22876 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.)
Attachments: lgb_add.html (7.95 KB)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives