Posts

Showing posts with the label AJAX

10 years of AJAX - Now much cleaner and standardized !

Image
A decade of Ajax About 10 years ago the Ajax word was coined to describe the interactive  web that Google created at that time Google Suggest and Google Maps  ( Ajax - Jesse James )  . At the heart of that emerging technology is a Microsoft created object XHR(XMLHttpRequest - XMLHttpRequest ) and is now adopted by Mozilla, Apple, and Google (IE is a different Web technology story). XHR is now being adopted as a standard in W3C ( standardized XHR - W3C ). But not only that there is XHR2 ( HTML5 Rocks )  - (I think this has been discontinued.) XHR provides an easy way to retrieve data without doing a page refresh. Despite its name we are using XHR for any structured data that the server can provide us. (JSON, JSON-LD) - and binary data ( SPDY HTTP 2.0 ) We have used AJAX in a lot of creative  (SPA, Web API, MashUps) ways and I am excited to see the next decade of highly interactive web designs. The Future What would the role of AJAX be in the internet of things ? M

DWR - Ajax made easy

Image
Web Users wants more! Web users are now demanding web applications to be interactive in nature and as responsive as their desktop applications. The interactive nature of Desktop applications seems out of reach for web based applications until a new approach came to be known as AJAX (Asynchronous JavaScript and XML). AJAX is a convergence of different technologies so that web applications can mimic the interactive nature and responsiveness of Desktop applications. I want to use AJAX Now! There are several AJAX frameworks that can be used and DWR is one of the most popular Ajax frameworks out there. There are 3 ways of how AJAX interaction are designed: 1. Content-Centric This approach will directly insert HTML into the client page 2. Data-Centric Information or data is received from the server in XML or JSON . 3. Script-Centric JavaScript code is received from the server. The response from the server will include JavaScript code. Among the 3 ways above i prefer the Data-Centric approac