Thanks, that did the trick.
Rey Bango-2 wrote: > > > That's because your Ajax call is running asynchronously and finishes > after your alert. Try this: > > var response = new $.ajax( > { > 'type': 'post', > 'url': this_class.options.url, > 'data': > { > 'total_items': this_class.options.total_items, > 'items_per_page': this_class.options.items_per_page, > 'current_page': this_class.options.current_page, > 'load_page': this_class.options.new_page > }, > success: function(msg){ > alert( "Data Saved: " + msg ); > } > }); > > Rey... > > Eridius wrote: >> >> var response = new $.ajax( >> { >> 'type': 'post', >> 'url': this_class.options.url, >> 'data': >> { >> 'total_items': this_class.options.total_items, >> 'items_per_page': this_class.options.items_per_page, >> 'current_page': this_class.options.current_page, >> 'load_page': this_class.options.new_page >> } >> }); >> alert(response.responseText); >> >> This code gives me an empty alert box but firebug gives me a response of >> "page 1". How do I get the html from the $.ajax response? > > -- View this message in context: http://www.nabble.com/%24.ajax-tp14552462s27240p14552709.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.