summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a997690)
(Do we need a fix for IE8/9?
- https://github.com/MoonScript/jQuery-ajaxTransport-XDomainRequest
- https://github.com/jaubourg/ajaxHooks/blob/master/src/xdr.js )
script.src = url+r.name+".gotRoute"+num;
document.body.appendChild(script);
};
script.src = url+r.name+".gotRoute"+num;
document.body.appendChild(script);
};
+ list[num].requestCORS=function(url) {
+ $.ajax({ url: url, method: "GET", data: {}, dataType: 'json', success: r['gotRoute'+num] });
+ };
r['gotRoute'+num]=function(data) {
r.awaitingRoute=false;
$(".query_wrapper.routing .spinner").hide();
r['gotRoute'+num]=function(data) {
r.awaitingRoute=false;
$(".query_wrapper.routing .spinner").hide();
//url+="&locale=" + I18n.currentLocale(); //Doesn't actually work. MapQuest requires full locale e.g. "de_DE", but I18n only provides language, e.g. "de"
url+="&manMaps=false";
url+="&shapeFormat=raw&generalize=0";
//url+="&locale=" + I18n.currentLocale(); //Doesn't actually work. MapQuest requires full locale e.g. "de_DE", but I18n only provides language, e.g. "de"
url+="&manMaps=false";
url+="&shapeFormat=raw&generalize=0";
- this.requestJSONP(url+"&callback=");
},
gotRoute: function(router,data) {
// *** what if no route?
},
gotRoute: function(router,data) {
// *** what if no route?
if (this._hints[pair]) url+= "&hint="+this._hints[pair];
}
if (isFinal) url+="&instructions=true";
if (this._hints[pair]) url+= "&hint="+this._hints[pair];
}
if (isFinal) url+="&instructions=true";
- this.requestJSONP(url+"&jsonp=");
},
gotRoute: function(router,data) {
if (data.status==207) {
},
gotRoute: function(router,data) {
if (data.status==207) {