Lines Matching refs:url
7 * method Y.jsonp(url, callback) to instantiate and send a JSONP request.</p>
10 * parameters: a url string and a callback.</p>
12 * <p>The url provided must include the placeholder string
15 * An example url might look like
28 * <li>format - override function for inserting the proxy name in the url</li>
38 * @param url {String} the url of the JSONP service
49 * to insert the temporary callback name in the url.
52 * @param url {String} the url of the JSONP service
55 * the url regex.
58 _init : function (url, callback) {
59 this.url = url;
75 * Map of the number of timeouts received from the destination url
95 subs.success = this._defaultCallback(url, callback);
109 * it is not provided at construction. This is overridden by jsonp-url to
110 * parse the callback from the url string.
113 * @param url {String} the url passed at construction
124 * @param args* {any} any additional arguments to pass to the url formatter
125 * beyond the base url and the proxy function name
133 url;
150 args.unshift(self.url, 'YUI.Env.JSONP.' + proxy);
151 url = config.format.apply(self, args);
198 Y.Get.script(url, {
210 * Default url formatter. Looks for callback= in the url and appends it
216 * @param url { String } the original url
220 * @return {String} fully qualified JSONP url
223 _format: function (url, proxy) {
224 return url.replace(/\{callback\}/, proxy);
233 * @param url {String} the url of the JSONP service with the {callback}
242 Y.jsonp = function (url,c) {
243 var req = new Y.JSONPRequest(url,c);