Getting Started with Ajax Asp.Net C#

The commencement by 2005 came across the ascent of a comparatively fresh technology, nicknamed “Ajax” by Jesse James Garrett of Adaptive Path. Ajax means Asynchronous JavaScript and XML. In a nutshell, it’s the function of the nonstandard XMLHttpRequest() object to pass on server-side scripts. It can commit as easily as get data in a mixture of formats, including XML, HTML, and even documents. Ajax’s most imploring feature, nevertheless, is its “asynchronous” nature, which intends it can do all of this without being forced to refresh the page. This lets you to update parts of a page established on user events and allows one among the foundations of Rich Internet Applications (RIA) cited in discussions of “Web 2.0.”

The DOM plays into Ajax in different ways. How you use the DOM depends on how you handle the content delivered from the server. You will be able to address the con­tent as simple text by utilising the responseText attribute of the server response, or you can address it as XML using responseXML. Presuming the content you pull back from the server is an (X)HTML snippet and you have gotten it as responseText, you dismissed content into a particular spot on the page using innerHTML. On the flip side, if the content you pull back is XML and you’ve gotten it as responseXML, you will be able to traverse its DOM, cherry-picking or performing functions on the elements, attributes, and text nodes.

This in all likelihood sounds very puzzling, but it’s pretty comfortable once we check a couple of easy examples.

Get Roxio Toast 10 Titanium

View the original article here

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Leave Comment