Skyblaze, is it possible for you to put up the page, or a sample page
with the same issue that we can take a look at the issue?

Also, what about other scripts on your page. Maybe you might have ajax
options set elsewhere that is causing your issue.


On Apr 8, 1:20 am, Joseph Le Brech <jlebr...@hotmail.com> wrote:
>  $.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
>
> > whre i have to put this breakpoint in firebug?
>
> > On Apr 8, 12:45 pm, donb <falconwatc...@comcast.net> wrote:
> > > 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/
>
> _________________________________________________________________
> Beyond Hotmail — see what else you can do with Windows 
> Live.http://clk.atdmt.com/UKM/go/134665375/direct/01/

Reply via email to