Link to home
Start Free TrialLog in
Avatar of junp50
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/drbConstraintsProcess">

<table onMouseOver="style.cursor=(navigator.appName=='Netscape')?'pointer':'hand'; window.status='Show Report'; return true;" onClick="jp();document.theForm.submit()" 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?
ASKER CERTIFIED SOLUTION
Avatar of jaysolomon
jaysolomon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jaysolomon
jaysolomon

or this

<table>
      <tr>
            <td onMouseOver="this.style.cursor='pointer'; window.status='Show Report'; return true;" onMouseOut="window.status=''; return true;"onClick="jp();document.theForm.submit()">TEST</td>
      </tr>
</table>
I guess it could potentially by the uppercasing and bad end comment tags:
<script language="JavaScript" type="text/javascript">
<!--
    function jp() {
      return null;
    }
// -->
</script>
Avatar of devic
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();return false;" onMouseOut="window.status=''; return true;">
....
</table>