Let's take the code apart
nTipoDurata=$(":radio").fieldValue();
make a value out of all the radio buttons on the page?? weird!

I would usually use $("[EMAIL PROTECTED]:checked").val()

Little else looks weird to me.

Although without a live link would help!

PS I advocate using as few ids as possible, forms fields need name
attributes, so I like to use them, I narrow down the search by using code
like
form.find("[EMAIL PROTECTED]") where form is a jquery object already set to
the form in question.

Hope it helps!

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


Hi,

I've the same problem on safari and firefox for mac and in some
windows based system.
The problem is only on the call to the page costonoleggio.php. I don't
know why in the most part of the systems (windows) all work correctly.
It will be surely a bug in my script but I don't find it.


On Apr 21, 7:22 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote:
> 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