다음 코드 스 니펫은 FF, IE 및 Chrome에서 작동합니다.
그러나 Safari 5.0.3에서는 작동하지 않습니다!
Safari는 어떤 종류의 오류 메시지도 반환하지 않습니다.
(어떤 이유로 든 'debugger;'명령이 어떤 브라우저에서도 발견되지 않고 경고 팝업이 결코 발생하지 않음에 유의하십시오. '경고 ('팝업이 닫힙니다 ';),', 그러나 아약스는 디버거가 예에서 작동하지 않는 이유를 내가 발견하지jQuery - 간단한 Ajax 오류 또는 복잡한 사파리 문제가 있습니까?
$(document).ready(function(){
// debugger; <-- This works
$(".oscform").click(function(){
debugger; // <-- this doesn't
alert ('Pop up will now 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