Lines Matching refs:callback
5 * method Y.jsonp(url, callback) to instantiate and send a JSONP request.</p>
8 * parameters: a url string and a callback.</p>
11 * "{callback}" which will be replaced by a dynamically
12 * generated routing function to pass the data to your callback function.
14 * "http://example.com/service?callback={callback}".</p>
16 * <p>The second parameter can be a callback function that accepts the JSON
19 * <li>on - map of callback subscribers
37 * @param callback {Object|Function} the default callback configuration or
47 * to insert the temporary callback name in the url.
51 * @param callback {Object|Function} Optional success callback or config
56 _init : function (url, callback) {
86 callback = (isFunction(callback)) ?
87 { on: { success: callback } } :
88 callback || {};
90 var subs = callback.on || {};
93 subs.success = this._defaultCallback(url, callback);
102 }, callback, { on: subs });
106 * Override this method to provide logic to default the success callback if
108 * parse the callback from the url string.
208 * Default url formatter. Looks for callback= in the url and appends it
216 * the configured callback methods.
222 return url.replace(/\{callback\}/, proxy);
231 * @param url {String} the url of the JSONP service with the {callback}
232 * placeholder where the callback function name typically goes.