Asp.Net - Super Curious on AJAX Approach 1
I tested AJAX .NET library before this, but I will like to know how you can do AJAX without
that library.
ASP.NET is an event driven approach and it supports postback. Sometimes I am frustrated with
ASP.NET (PHP or JSP as well), as I need to refresh the page every time I click the button.
Luckily Microsoft is working on with Atlas framework and there are few free libraries that
enable you to do AJAX easier.
AJAX is actually not new, but it started to be very popular when Google uses this. Maybe Google
is popular among us. [Correct me if I am wrong :)]
In order to implement AJAX within Internet Explorer environment, you can take a look at the MSXML
parser XMLHTTP class. This class is the key to implement AJAX model within Internet Explorer. But,
I am not so sure whether this works on other browsers.
Sample Code:
// <HEAD><SCRIPT>
obj = new ActiveXObject("Msxml2.XMLHTTP");
obj = new ActiveXObject("Microsoft.XMLHTTP");
// </SCRIPT></HEAD>
I am also wondering; can AJAX works at the same time with PostBack? Any idea?
In order to work with AJAX, you need to be strong in JavaScript. :( Okay, I didn't use JavaScript
for some time.