Monday, September 29, 2008
Ajax Layer Ajax Library Examples
See at work :demo online Ajax Library : Ajax Layer
Wednesday, September 24, 2008
Is JSON Fast and Reliable?
When it comes to making AJAX behave like a desktop application, speed is everything, and clearly, , JSON is a winner..
Test in your browser -Benchmarking AJAX - JSON vs XML.
Tuesday, September 2, 2008
Alternate Ajax Techniques Part 1 - Using iframe
HTML: iframe
The concept is simple: create a new iframe element and assign a valid url to its src attribute to load html content that isn't initially written into the page.
All you need to do is create a iframe element using the DOM createElement() method and add it to the page.
DEMO of Example 1AJAX PHR RSS Reader Step by Step Tutorial
Preparing the XMLHttpRequest Object
In the first step the application prepared an XMLHttpRequest object to use it for loading remote RSS data. I tested the code with firefox only, but I added ActiveXObject in case IE was used.
var RSSRequestObject = false; // XMLHttpRequest Object
if (window.XMLHttpRequest) // try to create XMLHttpRequest
RSSRequestObject = new XMLHttpRequest();
if (window.ActiveXObject) // if ActiveXObject use the Microsoft.XMLHTTP
RSSRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
Writing the HTML code
Just few lines are enough, two divs are used by the application the status will inform about the progress of requesting data, and the ajaxreader will be the container in which the result will be displayed. The first thing then to do onload page is to run the AJAX Reader.
AJAX RSS Reader
The AJAX RSS Reader
The AJAX Reader will request the backend URL and run a function ReqChange() when the data will be loaded. I have just added few additional function for usability purpose to display the status and hide it ...
var
Backend = 'rss.php'; // Backend url .....
Read complete article
You can find the AJAX RSS Reader
script running online
Open Source Scripts and Programs Ajax Javascript
XML parsers
Content Editors
Image processing
MySQL to JSON
| username | |
| tommy | tommy@tommysplace.com |
| jane | jane@examples.com |
| jack | jack@iford.com |
SELECT
CONCAT("[",
GROUP_CONCAT(
CONCAT("{username:'",username,"'"),
CONCAT(",email:'",email),"'}")
)
,"]")
AS json FROM users;[
{username:'tommy',email:'tommy@tommysplace.com'},
{username:'jane',email:'jane@examples.com'},
{username:'jack',email:'jack@jiford.com'}
]
AJAX Speed Up the Web
In the AJAX tutorial below we will demonstrate how a web page can be loaded 10 time faster using ajax.
This is the HTML page . It contains a simple HTML table,couple css rules and a link to a JavaScript