Jigsaw Puzzles - Debt Consolidation - Debt Consolidation - Debt Consolidation - Find jobs

PDA

View Full Version : jQuery ready states


cancer10
Jul 2nd 2008, 5:06 am
Hi,

Just wondering whats the function used in jQuery for ajax XMLHttpRequest

Like the following


0 The request is not initialized
1 The request has been set up
2 The request has been sent
3 The request is in process
4 The request is complete


More info here: http://www.w3schools.com/ajax/ajax_xmlhttprequest.asp



Thanx

MMJ
Jul 2nd 2008, 8:06 am
jQuery (and other libraries) abstract this so you don't have to do it yourself. Just set the call back and thats it.

cancer10
Jul 2nd 2008, 10:01 am
An example would be appreciated

MMJ
Jul 2nd 2008, 11:00 am
$.get("test.php", function(data){
alert("Data Loaded: " + data);
});

http://docs.jquery.com/Ajax/jQuery.get