Solved

onClick function call failed in IE on Mac

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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 …
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…

777 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