I'm trying to download an apk file from my webapp using a tablet.
<a href="#" data-role="button" id="loginButton" class="pulsantino">Login</a>
$("#pulsanteLogin").live("click",function(){
alert("1");
window.location.href = 'http://xx.yy.zz.www:1234/staticResources/Myapp_version.apk';
alert("2");
}
I know for sure that the url is correct (launching it from the browser will correctly start file download), but when i click on the button i get no error and no file download. I get both the alerts for '1' and '2'.
I've tried also with
location.href = 'url';
and
window.location = 'url';
Ideas?