Was this ever resolved, by chance?  I'm facing the same issue and I've
been digging around the docs and online and haven't come up with a
solution.  I am using firefox 3, and I have tried, get(), load(), post
(), and ajax(), and for each one the ajax events seem to fire for the
first request only, and not for subsequent requests.  Here is the
code:

$(function(){

    $("div#loading").bind("ajaxStart", function(){
     alert("ajaxStart");
    });

  $("div#linkHolder a").click(function(){
    $.ajax({
      type: "GET"
     ,url: $(this).attr("href")
     ,global: true
     ,success: function(data){
       $("div#content").html(data)
      }
    });
    return false;
  });

});


Any thoughts?  Thanks!
Brian




On Jul 17, 12:20 pm, "Cesar Sanz" <the.email.tr...@gmail.com> wrote:
> Maybe the ajax in not firing again...
>
> Have you checked the ajax calls with firebug?
>
> besides, are you using IE for this? Think IE catch ajax calls when using
> $.get or $.load .. try $.post or $.ajax
>
> ----- Original Message -----
> From: "Jedrin" <jrubia...@gmail.com>
> To: "jQuery (English)" <jquery-en@googlegroups.com>
> Sent: Thursday, July 09, 2009 4:19 PM
> Subject: [jQuery] ajaxStart() ajaxStop() problem
>
> > I have a page that has ajaxStart/stop as shown below to show some sort
> > of indicator while an ajax request is in progress. The first time an
> > ajax event happens, it works perfectly, the server renders some text
> > on the page. After that it stops working on subsequent ajax requests.
> > I don't see any javascript errors. Am I dong something wrong or how
> > could I troubleshoot ? thanks
>
> > <div id='loading' style='display:none'>
> > Loading ..
> > </div>
>
> > ..
> > ..
>
> > <script type="text/javascript">
>
> > $(document).ready(function(){
> > $("#loading").ajaxStart(function(){
> >  $(this).show();
> > });
> > });
>
> > $(document).ready(function(){
> > $("#loading").ajaxStop(function(){
> >  $(this).hide();
> > });
> > });
>
> > </script>

Reply via email to