New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Mac(IE and Safari): onClick does not work

Post Reply New Thread Subscribe

Thread Tools
Posts: n/a

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',' f')">
<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:
<script language="JavaScript" type="text/javascript">
function send(){

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 Thanks
Posts: n/a

have you checked it in firefox javascript debugger? that thing is like a god to me.

but here is how I would do it.


	<script type="text/javascript">
	function send(){
		<a href="javascript:void(0);" onclick="send();return false">hello</a>

and it works in safari.
QUOTE Thanks

Post Reply New Thread Subscribe

« Newer Mac User Needs Web Design Help... | Viewing .htaccess files on the Mac? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
JPEG file download via PHP on Mac(IE) irobot Web Design and Hosting 1 03-09-2005 09:40 PM

All times are GMT -4. The time now is 08:21 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?