I don’t understand the issue I’m having on FF7
I have an ajax calls that return a json object (jquery).
if(data.result=='ok') {
var url = baseURL + "azioni/makeForm/" + data.actcode + "/DIA/" + data.az_id;
console.log(url);
window.location.href(url);
}
Don’t work at all, but this one does:
if(data.result=='ok') {
var url = baseURL + "azioni/makeForm/" + data.actcode + "/DIA/" + data.az_id;
console.log(url);
window.location.href = 'http://www.google.com/';
window.location.href(url);
}
Why?
Please note that console.log works perfectly and outputs the correct url!
Maybe you might want to use:
I think .href is not a method but a property, so you can only assign a value to it. Underneath is probably an event listerer that let’s the browser redirect to that location.