Solved

onClick function call failed in IE on Mac

Posted on 2004-03-30
6
1,175 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:junp50
  • 2
6 Comments
 
LVL 16

Accepted Solution

by:
jaysolomon earned 125 total points
ID: 10714035
<table onMouseOver="this.style.cursor='pointer'; window.status='Show Report'; return true;" onMouseOut="window.status=''; return true;">
      <tr onClick="jp();document.theForm.submit()">
            <td>TEST</td>
      </tr>
</table>


FYI
pointer is standard cursor and hand is IE proprierty
0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10714070
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>
0
 
LVL 7

Expert Comment

by:searlas
ID: 10714557
I guess it could potentially by the uppercasing and bad end comment tags:
<script language="JavaScript" type="text/javascript">
<!--
    function jp() {
      return null;
    }
// -->
</script>
0
 
LVL 25

Expert Comment

by:devic
ID: 10714786
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>
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now