Lines Matching refs:callback
7 * method Y.jsonp(url, callback) to instantiate and send a JSONP request.</p>
10 * parameters: a url string and a callback.</p>
13 * "{callback}" which will be replaced by a dynamically
14 * generated routing function to pass the data to your callback function.
16 * "http://example.com/service?callback={callback}".</p>
18 * <p>The second parameter can be a callback function that accepts the JSON
21 * <li>on - map of callback subscribers
39 * @param callback {Object|Function} the default callback configuration or
49 * to insert the temporary callback name in the url.
53 * @param callback {Object|Function} Optional success callback or config
58 _init : function (url, callback) {
88 callback = (isFunction(callback)) ?
89 { on: { success: callback } } :
90 callback || {};
92 var subs = callback.on || {};
95 subs.success = this._defaultCallback(url, callback);
104 }, callback, { on: subs });
108 * Override this method to provide logic to default the success callback if
110 * parse the callback from the url string.
210 * Default url formatter. Looks for callback= in the url and appends it
218 * the configured callback methods.
224 return url.replace(/\{callback\}/, proxy);
233 * @param url {String} the url of the JSONP service with the {callback}
234 * placeholder where the callback function name typically goes.