junp50
asked on
onClick function call failed in IE on Mac
A function call never beed executed and stopped there for IE on Mac, but works fine in NC on Mac, or IE(NC) on PC.
<script language="JavaScript" type="TEXT/JAVASCRIPT">
<!--
function jp() {
return null;
}
-->
</script>
<form name="theForm" method="post" action="/esuite/control/dr bConstrain tsProcess" >
<table onMouseOver="style.cursor= (navigator .appName== 'Netscape' )?'pointer ':'hand'; window.status='Show Report'; return true;" onClick="jp();document.the Form.submi t()" onMouseOut="window.status= ''; return true;">
....
</table>
</form>
The key is, if I remove jp() call inside onClick, it works fine. I tried all different types of jp function, still run out of idea. Anybody help?
<script language="JavaScript" type="TEXT/JAVASCRIPT">
<!--
function jp() {
return null;
}
-->
</script>
<form name="theForm" method="post" action="/esuite/control/dr
<table onMouseOver="style.cursor=
....
</table>
</form>
The key is, if I remove jp() call inside onClick, it works fine. I tried all different types of jp function, still run out of idea. Anybody help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I guess it could potentially by the uppercasing and bad end comment tags:
<script language="JavaScript" type="text/javascript">
<!--
function jp() {
return null;
}
// -->
</script>
<script language="JavaScript" type="text/javascript">
<!--
function jp() {
return null;
}
// -->
</script>
what does return false in your example?
anyway try this:
<table onMouseOver="style.cursor= (navigator .appName== 'Netscape' )?'pointer ':'hand'; window.status='Show Report'; return true;"
onClick="document.theForm. submit();r eturn false;" onMouseOut="window.status= ''; return true;">
....
</table>
anyway try this:
<table onMouseOver="style.cursor=
onClick="document.theForm.
....
</table>
<table>
<tr>
<td onMouseOver="this.style.cu
</tr>
</table>