Automatic Implementation of AJAX Functionality Into Static Websites: com.bydust.ajax JavaScript Class
The modern AJAX technology powers many of currently existing websites, but in case you want to add AJAX features to older ones, the needed coding procedures could imply difficult programming tasks for certain practical situations, especially for static websites. In order to help the developers, there are available many frameworks and other tools, like classes that simplifies the implementation of AJAX technology into websites or other projects.
AJAX functionality can by added in an automatic manner to static websites with a simple to use JavaScript based class named clascom.bydust.ajax.
The script does not affect the static properties of the web pages if a certain web browser is not compatible with it: the class checks the web browser capability of running the required JavaScript and will automatically perform the required AJAX requests in case of a positive feedback. Otherwise, it will show a graceful degradation in unsupported older browsers, meaning that the visitor will still be able to see the web page static original content.
Practically, a web page request is recorded by the JavaScript class and sent to the server. The server reply is handled by a script which will display the requested web page. In case of an unexpected error, the HTTP request is handled by the browser and as a consequence the JavaScript class will be bypassed.
The class can be included in your web pages only with a few lines of code. It allows the usage of custom rules (links exclusion), events listeners which controls the execution of code in correlation with a certain event apparition, animations and filetypes parsing options. If you want to use this JavaScript class into your projects, it can be downloaded from Downloadtube website.
Tags: AJAX, JavaScript, Web browserRelated Articles



























































November 13th, 2008 at 12:07 pm
A howto-website has been set up at http://www.bydust.com/examples/com.bydust.ajax/ . There you can find more information about the implementation and various methods and properties. You can also download working examples.
If you have any questions, you can post them on my website ( link is in the original article here ).
Thanks to downloadtube.com for posting this article
November 13th, 2008 at 12:50 pm
[...] Transform A Static Website To An AJAX Based One automatically the help of a simple to implement JavaScript library. It can be included into your pages with only a few lines of code. [...]
November 13th, 2008 at 1:00 pm
[...] How To Automatically Add AJAX Functionality to A Static Web Site There are many AJAX frameworks and tools but sometimes they could be hard to implement into old static websites. clascom.bydust.ajax is a JavaScript based class that allows you to automatically convert a static website into an AJAX based one. [...]
November 13th, 2008 at 1:06 pm
[...] clascom.bydust.ajax is a JavaScript class that helps you to automatically convert static HTML pages to AJAX based ones with only a few lines of code. The script gracefully degrades in older web browsers. [...]