[jQuery] Re: Request for a simple basic Ajax call with loading gif

2008-02-18 Thread johan . borestad
var loader = $('div.ajaxloader').fadeIn(500) $('#ajax-placeholder').load('/content_to_load.php', function(){ // This is a callback function loader.fadeOut(500) }) Something like that. The div.ajaxloader is for you to style correctly with css to make it appear in the middle of the page, or

[jQuery] Re: Request for a simple basic Ajax call with loading gif

2008-02-18 Thread Remy Sharp
I've written a few, but there's a whole bunch out there (http:// docs.jquery.com/Tutorials). Using Ajax to validate forms: http://jqueryfordesigners.com/using-ajax-to-validate-forms/ Ajax'ifing forms (screencast): http://remysharp.com/2007/03/05/jquery-ajaxed-forms/ What you're after boils