Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Mac(IE and Safari): onClick does not work
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="timbaktoo" data-source="post: 207514"><p>Hi Everyone,</p><p></p><p>This issue is driving me nuts!! I sincerely hope somebody helps me out with this. It's very Urgent!!</p><p></p><p>The below code works fine with windows but not with Mac(IE and Safari). </p><p></p><p>What I would like to do is, display a jsp on the click of a button after performing some validation.</p><p></p><p>-------------------------------------</p><p>The body has the following:</p><p><body onload="MM_preloadImages('image1.gif','image2.gif','image3.gif','image4.gif','image5.gif','image6.gif')"></p><p><form id="form1" name="form1" method="post" target = "_blank" action="abc.jsp"></p><p>....</p><p>....</p><p>....</p><p><td rowspan="3" align="right"><a href="#" onClick="send();return false;"><img src="image1.gif" alt="Show" name="BTN" width="144" height="38" border="0" id="BTN" onMouseOver="MM_swapImage('BTN','','image1.gif',1)" onMouseOut="MM_swapImgRestore()"></a></td></p><p>-------------------------------------</p><p></p><p>-------------------------------------</p><p>The head contains the function:</p><p><head></p><p>.....</p><p><script language="JavaScript" type="text/javascript"></p><p>function send(){</p><p>....</p><p>....</p><p>document.form1.submit();</p><p>}</p><p>--------------------------------------</p><p></p><p>The problem here is that the send() function is not getting executed.</p><p>Also, the onMouseOver and onMouseOut in the above case do not work</p><p>I tried displaying an alert at the start of the send()function but it doesn't work.</p><p>Does anyone has a clue to fix this issue?</p><p></p><p>Eagerly waiting for your suggestions.</p><p></p><p>Thanks in advance!</p></blockquote><p></p>
[QUOTE="timbaktoo, post: 207514"] Hi Everyone, This issue is driving me nuts!! I sincerely hope somebody helps me out with this. It's very Urgent!! The below code works fine with windows but not with Mac(IE and Safari). What I would like to do is, display a jsp on the click of a button after performing some validation. ------------------------------------- The body has the following: <body onload="MM_preloadImages('image1.gif','image2.gif','image3.gif','image4.gif','image5.gif','image6.gif')"> <form id="form1" name="form1" method="post" target = "_blank" action="abc.jsp"> .... .... .... <td rowspan="3" align="right"><a href="#" onClick="send();return false;"><img src="image1.gif" alt="Show" name="BTN" width="144" height="38" border="0" id="BTN" onMouseOver="MM_swapImage('BTN','','image1.gif',1)" onMouseOut="MM_swapImgRestore()"></a></td> ------------------------------------- ------------------------------------- The head contains the function: <head> ..... <script language="JavaScript" type="text/javascript"> function send(){ .... .... document.form1.submit(); } -------------------------------------- The problem here is that the send() function is not getting executed. Also, the onMouseOver and onMouseOut in the above case do not work I tried displaying an alert at the start of the send()function but it doesn't work. Does anyone has a clue to fix this issue? Eagerly waiting for your suggestions. Thanks in advance! [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Mac(IE and Safari): onClick does not work
Top