This blog is moved to http://webonrails.com
This blog is moved to http://webonrails.com
JotSpot Live allows you, your colleagues or clients to take notes together on the same web page at the same time. Imagine everyone simultaneously typing and editing the same Microsoft Word document and you'll get the idea.
Ajazz is a Javascript library which implements client-side data types in JavaScript whose contents are transfered from the Web server asynchronously, using AJAX techniques. In addition to the data structures themselves (trees, arrays, etc.), it provides infrastructure for managing multiple AJAX requests in flight, parsing data structures from XML responses, and other utilities. Server-side tools and examples in Perl are also provided.
Ajazz is a very new project but you can already preview its version 0.1.0 which support currently the high-level data types trees and arrays of arbitrary objects (partly done), and come with eight support modules Utils, BitVector, TimedThing, MessageLog, FakeMessageLog, Listener, Request and Response. Ajazz is released under a BSD license, Samples and documentation are available, for more information http://cluefactory.com/oss/Ajazz/
DOMReady is a new extension to Prototype that allows you to attach one or more functions that will be executed as soon as the DOM is ready to work with. This will not wait for images or other assets to load like window.onload does.
Here’s the script: domready.js
To use it simply add a script tag after your prototype.js script tag or append the code to the bottom of prototype.js.
Then, to execute a function when the DOM is ready:
Event.onDOMReady(function() {
// Stuff here!
});You can call the function repeated times to add more functions to be triggered if you need to.
As everybody knows, refreshing pages is now a history. AJAX, DOM, whatever you call it makes it possible to let people edit a piece of text inline without having to use a submit button(need not to refresh page).
That ain’t new at all!,but all of this has been made easy to use and implement.
<span id="userName" class="editText">John Doe</span>
Note: id is the fieldname (?userName=John Doe&), and should be unique!
You’re done! Tell you friends
Using AJAX you can make you application more intractive, but Ajax development often complicated. Developers have to spent much time working with browser quirks.
XAJAX is a open source PHP class library to create AJAX enabled web applications. This is very simple toolkit, which works with any version of PHP and can run on Apache/IIS.
JSON (JavaScript Object Notation) is a data exchange format that’s becoming increasingly popular among the AJAX crowd. Many Ajax applications use JSON instead of XML to communicate with server, hence called AJAJ(Asynchronous javascript and JSON).
name: Steve
address:
street: 2323 Foobar Lane
city: Seattle
state: WA
zip: 98911
Data in JSON
{ name: “Steve”,
address: {
street: “2323 Foobar Lane”,
city: “Seattle”,
state: “WA”,
zip: 98911
}
}
The start of 2005 saw the rise of a relatively new technology, dubbed “Ajax” by Jesse James Garrett of Adaptive Path. Ajax stands for Asynchronous JavaScript and XML. In a nutshell, it is the use of the nonstandard XMLHttpRequest() object to communicate with server-side scripts. It can send as well as receive information in a variety of formats, including XML, HTML,JSON and even text files. Ajax’s most appealing characteristic, however, is its “asynchronous” nature, which means it can do all of this without having to refresh the page. This allows you to update portions of a page based upon user events and provides one of the cornerstones of Rich Internet Applications (RIA) referred to in discussions of “Web 2.0.”
http://www.webpasties.com/xmlHttpRequest/ may help in learning Ajax.