javascript - jQuery - Simple Ajax Error, Or complex Safari Issue? -
this following code snippet works in ff, ie , chrome.
not work in safari 5.0.3!
safari not return error message of kind.
( please take note 'debugger;' command reason never catches in browser , alert pop never happens 'alert ('pop close');', ajax seems work in mentioned 3 still somehow )
$(document).ready(function(){ // debugger; <-- works $(".oscform").click(function(){ debugger; // <-- doesn't alert ('pop close'); getcodeez(''+$(this).attr('lmgthing'),''+$(this).attr('ezprod'),''+$(this).attr('count')); $.ajax({ url: '/shopping_cart.php?oscsid=<?php echo $oscsid; ?>', type: "post", data: 'sort=2a&ezprod='+$(this).attr('ezprod'), async:false, error: function(xhr,err){}, success: function(data){} } ) //closepop(); }); // more code below
i never found out why debugger doesn't work in example, polarblau gave hint use console.log(), helpful , gave me insight issue.
i found out problem strange reason javascript did not have closing tag on other part of page ajax call. coding issue on part. while adding closing tag made safari run flawlessly, did somehow break ie, chrome , firefox! changed coding style little bit , fixed rest of issues.
Comments
Post a Comment