Ajax
Prototype offers three objects to deal with AJAX communication, which are listed below. With Prototype, going Ajaxy is downright simple! All three objects share a common set of options, which are discussed separately.
The articles below provide you with several examples. The Learn section also features a more narrative, tutorial-style article.
Методы
Ajax Options
Подробное описание всех основных параметров (общих для всех AJAX запросов ) и обратных вызовов.
Ajax.PeriodicalUpdater
new Ajax.PeriodicalUpdater(container, url[, options])
Periodically performs an AJAX request and updates a container’s contents based on the response text. Offers a mechanism for “decay,” which lets it trigger at widening intervals while the response is unchanged.
Ajax.Request
new Ajax.Request(url[, options])
Initiates and processes an AJAX request.
Ajax.Responders
Ajax.Responders.register(responder)
Ajax.Responders.unregister(responder)
A repository of global listeners notified about every step of Prototype-based AJAX requests.
Ajax.Response
The object passed as the first argument of all Ajax requests callbacks.
Ajax.Updater
new Ajax.Updater(container, url[, options])
Performs an AJAX request and updates a container’s contents based on the response text.