[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread James
: >  $.ajax( > >  //here then look in the dom inspector, you may see and array with two > elements instead of just one > > { > > > > > Date: Wed, 8 Apr 2009 03:54:16 -0700 > > Subject: [jQuery] Re: Jquery makes two ajax requests in one!! > > Fro

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread Joseph Le Brech
$.ajax( //here then look in the dom inspector, you may see and array with two elements instead of just one { > Date: Wed, 8 Apr 2009 03:54:16 -0700 > Subject: [jQuery] Re: Jquery makes two ajax requests in one!! > From: marcomenozz...@gmail.com > To: jquery-en@googlegroups.com

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread Skyblaze
text or something similar? > > > > > Date: Wed, 8 Apr 2009 00:49:45 -0700 > > > > Subject: [jQuery] Re: Jquery makes two ajax requests in one!! > > > > From: marcomenozz...@gmail.com > > > > To: jquery-en@googlegroups.com > > > >

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread donb
Apr 8, 10:49 am, Joseph Le Brech wrote: > > > Can you put a breakpoint to see if it runs change twice? > > > Do you change the value and the text or something similar? > > > > Date: Wed, 8 Apr 2009 00:49:45 -0700 > > > Subject: [jQuery] Re: Jquery makes two a

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread Skyblaze
0700 > > Subject: [jQuery] Re: Jquery makes two ajax requests in one!! > > From: marcomenozz...@gmail.com > > To: jquery-en@googlegroups.com > > > this is very very strange...any ideas? > > > On Apr 8, 1:52áam, Skyblaze wrote: > > > ok i did that and i

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread Joseph Le Brech
Can you put a breakpoint to see if it runs change twice? Do you change the value and the text or something similar? > Date: Wed, 8 Apr 2009 00:49:45 -0700 > Subject: [jQuery] Re: Jquery makes two ajax requests in one!! > From: marcomenozz...@gmail.com > To: jquery-en@goog

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-08 Thread Skyblaze
this is very very strange...any ideas? On Apr 8, 1:52 am, Skyblaze wrote: > ok i did that and i have only one alert box so the event is fired > once. So what is that fires two same ajax get request? > > On Apr 8, 1:00 am, James wrote: > > > Try adding an alert or console.log in your change even

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-07 Thread Skyblaze
ok i did that and i have only one alert box so the event is fired once. So what is that fires two same ajax get request? On Apr 8, 1:00 am, James wrote: > Try adding an alert or console.log in your change event (not inside > your ajax success callback) to debug whether the change event is > actu

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-07 Thread James
Try adding an alert or console.log in your change event (not inside your ajax success callback) to debug whether the change event is actually being called once or twice. On Apr 7, 12:23 pm, Skyblaze wrote: > I have no other id with that name and also with firebug suspended it > is the same.a

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-07 Thread Skyblaze
I have no other id with that name and also with firebug suspended it is the same.always the same ajax/get request...two identical ajax get request one after the other On Apr 7, 8:31 pm, "Rick Faircloth" wrote: > Make sure you don't have another id called #comprensori_id. > I had some code le

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-07 Thread Rick Faircloth
Make sure you don't have another id called #comprensori_id. I had some code left over from experimentation on a page that I failed to clear off and every time a certain ajax function ran, it did so twice! Rick -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegr

[jQuery] Re: Jquery makes two ajax requests in one!!

2009-04-07 Thread Laker Netman
On Apr 7, 11:30 am, Skyblaze wrote: > I have a strange problem. I have to do an ajax request after a select > box changes (change event) so i have the following code: > > $('#comprensori_id').change(function() { >                         var comprensorio_id = $(this).val(); >