Solved

onClick function call failed in IE on Mac

Posted on 2004-03-30
6
1,177 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

821 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