Current location: Hot Scripts Forums » General Web Coding » JavaScript » Safari onClick Alternative Using Jquery


Safari onClick Alternative Using Jquery

Reply
  #1 (permalink)  
Old 03-19-10, 10:37 AM
cesarcesar cesarcesar is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 77
Thanks: 0
Thanked 1 Time in 1 Post
Safari onClick Alternative Using Jquery

After much research i understand that Safari isn't able to call the onClick Event like the other browsers do. So how do i get Safari to act like the other browsers is my question? I have see no real alternative. Can any of you help? My current code is below. It works in all browsers except Safari (haven't checked Chrome, but it should be same as Safari what i read). Thanks much.

Code:
<script language="Javascript">
<!--

	$(document).ready(function() {
	        $('.create_project').click(function(){
			alert('its working');
		});
	});

//-->
</script>
Code:
a href="javascript:void(0);" class="create_project"><img src="b.create.off.gif" width="99" height="45" border="0" id="Image51" onMouseOver="MM_swapImage('Image51','','b.create.on.gif',1)" onMouseOut="MM_swapImgRestore()">
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-26-10, 02:19 AM
DaiLaughing DaiLaughing is offline
Newbie Coder
 
Join Date: Jul 2009
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Does onmouseup work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
onClick event - solution for Safari? xenia_jazz HTML/XHTML/XML 4 04-17-09 05:25 AM
Changing iframe src property not working in Safari AmberLR JavaScript 1 04-08-09 11:41 AM
Safari Screw Up DAL JavaScript 4 04-01-08 09:14 AM
how to use onclick in php coolcoder HTML/XHTML/XML 2 05-31-06 01:40 PM
exeCommand("Refresh") in Safari shermski JavaScript 1 07-16-05 02:44 AM


All times are GMT -5. The time now is 01:33 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.