Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Pages creating onclick="return TABLE1_onclick()" causing javascript errors

Thread Tools

Pages creating onclick="return TABLE1_onclick()" causing javascript errors

Posts: n/a
For some reason the HTML that is being created by my ASP.Net pages
(2.0) have a table like this:

<table border="0" cellpadding="0" cellspacing="0" style="z-index: 103;
left: 0px; width: 100%; position: absolute; top: 0px;" id="TABLE1"
onclick="return TABLE1_onclick()">

This ends up causing a javascript error "Object excpected" when you
click on the page because there is no TABLE1_onclick() function. Why
is it doing this and what can I do to get it to stop? I'm not doing
anything esoteric, just creating simple pages using a master page.


Reply With Quote
Posts: n/a
I thought if I create a TABLE1_onclick function that does nothing it
would stop the error. So I put one at the top of my ASP page.
However, when the page is created for the browser, the function endd up
being below the table tag that calls it, so it can't find it. If I
manually modify the html and put the function above the tag, the error
goes away. If there isn't any way to get rid of the call, is there a
way I can have the javascript function rendered above the tag?

Reply With Quote
Posts: n/a
Posted via
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebResource.axd request causing errors PJ ASP .Net 8 05-10-2006 08:44 PM
Sharepoint seems to be causing errors in our application ASP .Net 5 09-09-2005 01:10 PM
Internet Explorer causing errors/ slow internet speed and Outlook express errors Jeanne Medley Computer Support 2 02-11-2004 11:44 PM
Errors, errors, errors Mark Goldin ASP .Net 2 01-17-2004 08:05 PM
anyone know what is causing these errors? Wee Bit Tall Computer Support 0 12-09-2003 08:27 AM