but since you already specify the target element for the .load() at
some point, you'll already have it to put in the callback?

function doLoad(el, url) {
  var contEl = $(el)
  contEl .append('<img id="loadIcon" src="loading.png" />');
  contEl .load( url, function(){
    contEl .remove('#loadIcon');
  });
}

<a href=# onclick="doload('#myContainer','http://
www.google.co.uk')">load</a>

On Mar 6, 10:14 am, Alexandre Plennevaux <aplennev...@gmail.com>
wrote:
> yes, thanks but that does not help my specific need: what i need to
> know is if the ajax object stores the container in which it will load
> the content in a property that i can retrieve, so that the load
> animation goes on top of it.
>
> On Fri, Mar 6, 2009 at 11:11 AM, ryan.j <ryan.joyce...@googlemail.com> wrote:
>
> > oh and it may or may not be any use, but you can grab all manner of
> > nice animated loading graphics here...http://www.ajaxload.info/

Reply via email to