SAPO.Communication.Syndication::Syndication
This method will load a JSON object into the browser and execute arbritary code while it loads, when it loads and or if it fails.
Also, it has a unique feature in which the JSON object name is ignore and automaticaly mapped.
Syntax
new SAPO.Communication.Syndication(<json_uri>, {<options>});
Compatibility
| Firefox 1.x | Yes |
| Safari 2 | Yes |
| IE6 | Yes |
| IE7 | Yes |
| Opera | Unknown |
Depends
Input Parameters
- (uri) json_uri : URI of the JSON object
- (object) options : Optional Parameters
- (function) onComplete : Callback function to be executed when the JSON is fully loaded
- (function) onLoading : Function to be executed while the JSON object is being loaded
- (function) onFailed : Function to execute is the object loading fails
- (function) timeout : Timeout in seconds to load the JSON onject
- (object) optOnComplete : onComplete arguments, if any
- (object) optOnLoading : onLoading arguments, if any
- (object) objectName : Name of the JSON object being return. If not specified, the code will adapt to any name being returned.
Sample
http://js.sapo.pt/SAPO/Communication/Syndication/sample/index.html
Community feedback