it might be this line that safari is croaking on!
$("#costo").html($("costo",xmlData).text());

Safari is very conservative about adding nodes from an xml ajax request to
the html page. I've done some kluges, that help skirt the issue.

Have you tried the nightly build of webkit to determine if it's been fixed?

Simplifying the code will help, and running  with the javascript console
will give you at minimum the way you are croaking!

Do you have a live url, I can run it through safari and webkit to see if I
get any extra info.



On 4/21/07, junior2000 <[EMAIL PROTECTED]> wrote:


Hi,
I've a problem with an ajax call only on mac systems. On windows and
linux works well.
In the systems with problem firebug displays that the post request
don't load.
I've used the last jquery and the forms plugin.
Here the script:

Thanks for any suggestion.

<script type="text/javascript" language="JavaScript">
<!--

$(document).ready(function(){

function calcolaCostoNoleggio() {

nSettimane=0;
nMesi=0;
nTipoDurata=$(":radio").fieldValue();
nDurata=$("#durata").val();
nCliente=$("#idc").val();
nProduct=$("#id").val();

$.ajax({ type: "POST", url: "costonoleggio.php", data:
"durata="+nDurata+"&tipo_durata="+nTipoDurata+"&idc="+nCliente
+"&id="+nProduct, dataType: "xml", success: function(xmlData) {


$("#costo").html($("costo",xmlData).text());
abbonamento=$("abbonamento",xmlData).text();
if (abbonamento>2) $("#copertura_abbonamento").html("L'abbonamento non
copre interamente il noleggio");
else $("#copertura_abbonamento").html("L'abbonamento copre interamente
il noleggio");


}
});

}

calcolaCostoNoleggio();



  $("#durata").change(function(event){
calcolaCostoNoleggio();
});


    $("#tipi input").click(function(event){
calcolaCostoNoleggio();
})


});


//-->
</script>




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to