Try adding an alert or console.log in the click handler. Maybe the
issue could be that the click is being called twice, thus executing
the AJAX twice.

On Apr 7, 8:13 am, Laker Netman <laker.net...@gmail.com> wrote:
> On Apr 7, 3:38 am, EnvyGeeks <jor...@envygeeks.com> wrote:
>
>
>
> > It seems that either I'm doing something horribly wrong or something
> > because everytime I do an Ajax call using $.load() it causes a double
> > query on the page.
>
> > example:
> > $("div#example a").click(function(){
> >     $.ajax_uri = this.href;
> >     $("div#sidebar").fade_in(300,function(){
> >         return $("div#sidebar").load(String($.ajax_uri)+" div#sidebar
> > ul:first",function(){
> >             return $("div#sidebar").fade_out(300);
> >         });
> >     });
> >     return false;
>
> > });
>
> > results in:
>
> > GET URL/URI    200 OK    39ms    jquery.js (line 19)
> > GET URL/URI    200 OK    28ms    jquery.js (line 19)
>
> > I removed the URL's and URI's because it's a work in progress and I
> > don't want it public just yet.
>
> If you are using Firebug, try disabling it for the site and see what
> happens.
>
> Laker

Reply via email to