Skip to main content

Exploiting Ajax

This XmlHttpRequest thingie (aka Ajax as pointed out by Rakesh), is getting INTO my blood. Can't help it, the features provided are really good.

Gone are the days when we required to call form.submit(), everytime we needed to validate simple items, etc. etc. Whew, just thnking about the possibilities screws up my mind. Was checking out as to how others have used this object, and came up with this small list,

Seeing the list, makes me think, maybe i should shift to google :D

Then i came across this site, which talks about Usability Guidelines for XmlHttpRequest. Wow, that's something new. Anyway checked it out and found that his examples and mis-examples are somethings really worth reading about.

Further if you really dont know what i am speaking about, this site of apple's is a great explanation of the object and it's functionalities.

I guess i better sign off before you get bored of XmlHttpRequest. Also need to get back to working on Client CallBack, yeah, u guessed it right, the XmlHttpRequest object provided by ASP.NET 2.0 (codename Whidbey)

Comments

Popular posts from this blog

So you have your website deployed in PROD ... now what ??

Posting on behalf of Usr.Web.Speed - My previous job had been to architect and develop websites for various customers. During that time my team and I have architected and developed various web applications mainly for enterprises. (But below info is not restricted to enterprises) Other than the usual development and testing tasks involved, our focus area was to abide by multiple SLAs. One of the primary SLAs was to provide the users of our websites a very low (usually subsecond) response time (or page load time). To adhere to this SLA, we did multiple activities, in code, process as well as infrastructure. These include (but not limit to) - Using best practices including (http://developer.yahoo.com/performance/rules.html) Determining the optimum number of calls to the databases, open connections, etc. Providing the fastest mechanisms to download associated content (such as stylesheets, JS files, etc. over CDN) And debugging the reason for the slowness of the websites, when ...

My first problem with AJAX

I was using Callback (AJAX) to retrieve a page i had developed . Lets start all over, I was using AJAX to retrieve a part of the contents of a web page. Cool, simple, it downloaded without a pain, then I innerHTMLed it to a span tag. Worked fine, successful, clapped my hands etc.etc. Clicked on the button which had seemed to appear out of nowhere. And then, it all fell apart. The feared exclamatory symbol appeared on the status bar.... And for the newbies, thats an indication of a JavaScript error in IE. Of course, as usual i was all curses at my IE window......Anyway to make a long story short (i AM quite sleepy u know). the scripts which i seemed to be innerHTMLing to the span tag are not executed. And what i mean is anything between the script tags which have been innerHTMLed to that span tag are not executed. Of course i can see a ray of hope in the distance. I mean the distance till tomorrow morning. And just for kicks, check out a hi-fundoo flash file titled EPIC 2004 . And for...