AJAX = Asynchronous JavaScript and XML.
AJAX is a technique for creating fast and dynamic web pages.AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.
Ajax Sample Code
AJAX is a technique for creating fast and dynamic web pages.AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. This means that it is possible to update parts of a web page, without reloading the whole page.
Ajax Sample Code
jQuery.ajax( { type : "POST", url : "filename.php", data : "type="+aa, beforeSend: function (){ jQuery('#wcctresponse').html("<img src='images/loading4.gif'>"); }, success : function(response) { jQuery('#wcctresponse').html(status); return true; } });Ajax Status
0: request not initialized.
1: server connection established.
2: request received.
3: processing request.
4: request finished and response is ready.
Diffrence between live and bind
The main difference is that live will work also for the elements that will be created after the page has been loaded (i.e. by your javascript code), while bind will only bind event handlers for currently existing items.
$( "#members li a" ).bind( "click", function( e ) {} );
Comments
Post a Comment