YUI 3 Cookbook by Evan Goer

YUI 3 Cookbook by Evan Goer

Author:Evan Goer [Evan Goer]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming Languages / JavaScript
ISBN: 9781449393885
Publisher: Yahoo Press
Published: 2012-05-23T16:00:00+00:00


Note

You must run this example from a real web server, not the local filesystem.

Discussion

Y.io() breaks the XHR transaction into four main phases, represented by five events. (For cross-domain requests, there is a sixth event named xdrReady.) As Example 5-3 demonstrates, they fire in this order:

start fires at the start of the transaction. The callback receives a transaction id, but not a response object (for obvious reasons). This event is a good place to either do any common setup work to receive the request, or update the user interface with some indication that the page is fetching data.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.