I would breakpoint 'deeper', down in the ajax code such as where
ajaxStart is called.  Then check the stack to see how you got there.

On Apr 8, 4:53 am, Skyblaze <marcomenozz...@gmail.com> wrote:
> I already tried to debug with firebug and i saw that the callback
> (with the ajax request code in it) in the event handler function is
> just called once. Then i also putted an alert in the event handler and
> as i said before i see in output only one alert box so the event
> handler callback is just called once. I don't change anything in the
> origjnal selectbox
>
> On Apr 8, 10:49 am, Joseph Le Brech <jlebr...@hotmail.com> 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 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 <marcomenozz...@gmail.com> 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 <james.gp....@gmail.com> 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
> > > > > actually being called once or twice.
>
> > > > > On Apr 7, 12:23ápm, Skyblaze <marcomenozz...@gmail.com> wrote:
>
> > > > > > 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" <r...@whitestonemedia.com> 
> > > > > > wrote:
>
> > > > > > > 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...@googlegroups.com] On
>
> > > > > > > Behalf Of Skyblaze
> > > > > > > Sent: Tuesday, April 07, 2009 12:31 PM
> > > > > > > To: jQuery (English)
> > > > > > > Subject: [jQuery] Jquery makes two ajax requests in one!!
>
> > > > > > > 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();
> > > > > > > á á á á á á á á á á á á $.ajax({
> > > > > > > á á á á á á á á á á á á á á á á á átype: "GET",
> > > > > > > á á á á á á á á á á á á á á á á á áurl: "",
> > > > > > > á á á á á á á á á á á á á á á á á ádata: "comprensorio_id=" +
> > > > > > > comprensorio_id,
> > > > > > > á á á á á á á á á á á á á á á á á ásuccess: function(data, msg){
> > > > > > > á á á á á á á á á á á á á á á á $('#comuni_id').empty();
> > > > > > > á á á á á á á á á á á á á á á á $('#comuni_id').append(data);
> > > > > > > á á á á á á á á á á á á á á á á á á}
> > > > > > > á á á á á á á á á á á á á á á á á});
> > > > > > > á á á á á á á á });
>
> > > > > > > the problem is that when i change the select box selection my 
> > > > > > > browser
> > > > > > > makes two consecutives same ajax request and i can't figure out
> > > > > > > why...this is very strange
>
> > _________________________________________________________________
> > View your Twitter and Flickr updates from one place – Learn 
> > more!http://clk.atdmt.com/UKM/go/137984870/direct/01/

Reply via email to