facebook like loading indicator

facebook like loading indicator

hi there

i am trying to get a facebook like loading indicator. 
it shoud instantly displayed next to the link as you click it. (no ajax used... just standard page switch)

i was trying this one:
  1. $(document).ready(function(){       $("a").click(function(){             $('li').append('<span><img src="http://test.local/test/loading.gif"></span>');
          });
    });
it almost works but if the new page is displayed and the browsers back button is clicked, the loading indicator is still shown up...
does anyone have an idea or a better solution?
thanks
    • Topic Participants

    • tobi