BizTalk Utilities CV ,   Jobs ,   Code library
Go to the front page to continue learning about XML or select below:


ReBlogger Contents

Previous posts in XML

Page 17615 of 21350

What is AJAX And why we (don`t) use AJAX...

Blogger : Schwarz .NET Framework Snippets and Samples
All posts : All posts by Schwarz .NET Framework Snippets and Samples
Category : XML
Blogged date : 2005 Aug 08

I read the blog from Wallace What is AJAX Yes, what is AJAX and why do we want to use AJAX

  1. We have to use AJAX because everyone is talking about it!
  2. We have to use AJAX because big companies (Google, Amazo, Microsoft) are using AJAX!
  3. We have to use AJAX because it is faster than have a postback for each call!
  4. We have to use AJAX because...

BUT: Are we using AJAX Have a look on the name of AJAX: Asynchronous JavaScript and XML. If you ever used my Ajax.NET library you are not using AJAX!! I started the Ajax.NET library after I have read the article A New Approach to Web Applications (Jesse James Garrett, adaptive path). Before the library was called CSharpWrapper. Changing the name to Ajax.NET and adding more features was the correct decision at the right time. Inside it is the same, I`m using the XmlHttpRequest to transfer data to and from the server without a postback (and a complete page reload).

If you have a look inside the Ajax.NET library you can see that I`m not using XML to transfer the data to or from the server. I am using the JSON syntax because it is supported by I think all modern browsers including Pocket IE (Windows Mobile). It is very simple and you can get a real JavaScript object using one command: eval.

In the future we will use the XmlHttpRequest to post and get data from the server using the HTTP protocol, synchronous or asynchronous. We will serialize the data (objects) using strings (JSON), XML or maybe binary data. On the client we are using JavaScript to change parts of the web page using DHTML/DOM.

The conclusion is: AJAX is still a cool name! Now, that we have the acceptance of developers and web designers we should concentrate us on the correct usage of the XmlHttpRequest object. I still get strange questions concerning the Ajax.NET library because of missing understanding how HTTP, postbacks and browsers are working.

Read comments or post a reply to : What is AJAX And why we (don`t) use AJAX...
Page 17615 of 21350

Newest posts

    Email TopXML