Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE7 table onclick firing randomly

Status
Not open for further replies.

NervousRex

Programmer
Sep 4, 2003
66
US
I have the following code which works fine in IE6

<table width="12" cellpadding="0" cellspacing="0" onclick="menu_click()" class="trans">
<tr>
<td background="images/clientSliderFull.gif" height="150"></td>
</tr>
</table>



When you click the image, it should call the menu_click function. But in IE7 it "randomly" calls it.

When the page first loads, everything is fine, I click the image and it opens and closes the image (should only open). Then if I click ANYWHERE on the page, it opens and closes (should only fire if I click in the table).

If I click and hold the mouse for a second on the table/image, it works as intended.

If I mouse over other random elements on the page, the menu opens and closes.


Any ideas why IE7 is doing this?
 
the hide/show won't work in firefox because firefox doesn't believe in negative absolute positions. But Firefox doesn't do the other random things IE7 is doing that is giving me grief.

This web app is developed strictly for my company who currently uses IE6, but microsoft will be enforcing IE7 shortly, so I need to get it working in both....works fine in IE6.


As far as the HTML validator goes, pasting the source in produces alot of errors, only 1 of which I myself can correct, the rest are asp.net controls generated code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top