Articles of level

It depends. Clearly the X in AJAX stands for XML, but several AJAX proponents are quick to point out that nothing in AJAX, per se, precludes using other types of payload, such as, JavaScript, HTML, or plain text. 
XML - Web Services and AJAX seem made for one another. You can use client-side API for downloading and parsing the XML content from RESTful Web Services. (However be mindful with some SOAP based Web Services architectures the payloads can get quite large and complex, and therefore may be inappropriate with AJAX techniques.) 
Plain Text - In this case server-generated text may be injected into a document or evaluated by client-side logic. 
JavaScript - This is an extension to the plain text case with the exception that a server-side component passes a fragment of JavaScript including JavaScript object declarations. Using the JavaScript eval () function you can then create the objects on the client. JavaScript Object Notation (JSON), which is a JavaScript object based data exchange specification, relies on this technique. 
HTML - Injecting server-generated HTML fragments directly into a document is generally a very effective AJAX technique. However, it can be complicated keeping the server-side component in sync with what is displayed on the client. Mashup is a popular term for creating a completely new web application by combining the content from disparate Web Services and other online API. 

One solution that you can use to handle the session timeout errors is using JSON or XML format as output for your AJAX requests.

Here are a few reasons for using XML - 

  • XML can be used to describe and identify information accurately and unambiguously, in a way that computers can be programmed to understand.
  • XML allows documents which are all the same type to be created consistently and without structural errors, because it provides a standardized way of describing, controlling, or allowing//disallowing particular types of document structure. [Note that this has absolutely nothing whatever to do with formatting, appearance, or the actual text content of your documents, only the structure of them.
  • XML provides a robust and durable format for information storage and transmission. Robust because it is based on a proven standard, and can thus be tested and verified; durable because it uses plain-text file formats which will outlast proprietary binary ones.
  • XML provides a common syntax for messaging systems for the exchange of information between applications. Previously, each messaging system had its own format and all were different, which made inter-system messaging unnecessarily messy, complex, and expensive. If everyone uses the same syntax it makes writing these systems much faster and more reliable.

You can use Visual Studio to work faster and more efficiently when you write, navigate, and debug your code. There are some tricks which is helpful to every programmer-

PreviousDisplaying 2 of 2
1 2
Need Help? Contact Us.

Log in


Forgot password?


New User