Simple AJAX with client XSLT
Posted: Mon Jun 07, 2010 3:00 pm
This is a very simple AJAX application with client XSL transforms. AJAX is a great way to display information on a web page without refreshing the page. There are several AJAX examples in this forum, nothing new here.
XSLT can take that functionality a step further. With XML/XSLT in mind, you can grab a bunch of data and send it to the caller, in this case an AJAX method, as an XML stream. Then transform the stream to an XHTML element. The attached files simulate reading a 3 axis I2C accelerometer then displaying the results in a table. Well, the attachment actually contains working source files, I simply commented the I2C reads with random numbers.
XSLT can take that functionality a step further. With XML/XSLT in mind, you can grab a bunch of data and send it to the caller, in this case an AJAX method, as an XML stream. Then transform the stream to an XHTML element. The attached files simulate reading a 3 axis I2C accelerometer then displaying the results in a table. Well, the attachment actually contains working source files, I simply commented the I2C reads with random numbers.