The relationship between download file by Browser and cache in web runtime
web runtime app coding:
.......
function download() {
var url = "http://www.xxx.com/xxx.wgz";
var urlEncoded = encodeURI(url);
widget.openURL(urlEncoded);
window.close();
}
.......
download xxx.wgz file by Browser. First, run app with above code,call bowser to download file, it do well.
Redo it later, popup browser, not download file. If clear cache in browser, redo it ,it do well.
Why?
How to solve this problem of downloading file?
Thank you very much!
Re: The relationship between download file by Browser and cache in web runtime
Hi,
You could try if the following trick helps.
[CODE]
var d = new Date();
widget.openURL("http://www.yoururl.com/widget.wgz?time="+d.getTime());
[/CODE]
-Ilkka