Thursday, 21 February 2008

New world of MS Ajax Client Reference - Good Bye to getElementById

By now most of us know what Ajax can do for us, but interms of basic javascripting (DOM) there were not many improvements since long time, now we have a new package of easy to work api's available with Microsoft Ajax.

http://asp.net/AJAX/Documentation/Live/ClientReference/default.aspx

Small example of simplicity introduced is..

document.getElementById("Button1").value = "new label for the button";

can be written with a simple $get method as shown below.

$get("Button1").value = "new label for the button";

Happy Scripting!!