Re: Closing an application
Hi Cyr,
You can try it:
[code]
ovi.provide("MyNS.snippet.navig");
MyNS.snippet.navig = new ovi.Class({
Extends: ovi.ui.Snippet,
template: '<span data-bind-event="click:click">navig</span> ',
click: function() {
setTimeout(function() {
window.close();
}, 6000);
}
});
[/code]
If it isn't work, I think the click callback is not fire.
Re: Closing an application
Still won't work. No error.[QUOTE=jzferreira;774335]If it isn't work, I think the click callback is not fire.[/QUOTE]It is fired, since a little [i]window.alert[/i] just after the [i]window.close[/i] triggers...
Re: Closing an application
[QUOTE=Cyr;774445]Still won't work. No error.It is fired, since a little [i]window.alert[/i] just after the [i]window.close[/i] triggers...[/QUOTE]
Did you fixed?
Re: Closing an application
Have you tried it on the device?
I just spottet that in the Aptana emulator window.close() won't work. But on my 5800 it works.