Lines Matching refs:url
1 YUI.add('jsonp-url', function(Y) {
8 * Adds support for parsing complex callback identifiers from the jsonp url.
13 * @submodule jsonp-url
20 * name into the JSONP url. Looks for a query param callback=. If a value
32 * name to the url.
42 * <p>Parses the url for a callback named explicitly in the string.
44 * parameter or url format.</p>
50 * @param url {String} the url to search in
54 _defaultCallback: function (url) {
55 var match = url.match(this._pattern),
96 * URL formatter that looks for callback= in the url and appends it
102 * @param url { String } the original url
105 * @return {String} fully qualified JSONP url
108 _format: function (url, proxy) {
112 if (this._pattern.test(url)) {
113 return url.replace(this._pattern, callback);
115 lastChar = url.slice(-1);
117 url += (url.indexOf('?') > -1) ? '&' : '?';
119 return url + callback;