Safari onClick Alternative Using Jquery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • empiresolutions
    New Member
    • Apr 2006
    • 162

    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()">
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    the onclick-event is fired normally in webkit-browsers (there are some specifics with the passed event-properties though and a framework should handle it) ... when it is not working in your case then it is a jQuery/Prototype issue ... i assume that you use jQuery/Prototype because the posted code looks like it ... which version of jQuery/Prototype do you use ... and which safari/webkit version is affected?

    Comment

    Working...