Browser close issue
-
can we stop window.open on page refresh event... because if i refresh then also this code is executing... Sorry I am repeating my question.. Thanks in advance Yrishi
yrishi wrote:
Sorry I am repeating my question..
Yes, you are. And the answers are not going to change. 1 - window.open is not a solution 2 - an AJAX call is more reliable 3 - even that is not going to work 100% of the time 4 - therefore, most of the pages on the web find other ways to deal with this. Asking the same question and expecting a different answer, is not really terribly bright.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
yrishi wrote:
Sorry I am repeating my question..
Yes, you are. And the answers are not going to change. 1 - window.open is not a solution 2 - an AJAX call is more reliable 3 - even that is not going to work 100% of the time 4 - therefore, most of the pages on the web find other ways to deal with this. Asking the same question and expecting a different answer, is not really terribly bright.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Thanks for quick reply.. you mean to say that AJAX call is also not 100% sure solution(as your point no 2 and 3) Please update me
Yes, I told you that last time. If someone closes the browser, rather than goes to another page, I'm not sure if the event fires. Either way, you can't be sure someone's computer didn't just crash, right ? Like I said last time, your solution is to fix your code, not to look for something that does not reliably exist.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Yes, I told you that last time. If someone closes the browser, rather than goes to another page, I'm not sure if the event fires. Either way, you can't be sure someone's computer didn't just crash, right ? Like I said last time, your solution is to fix your code, not to look for something that does not reliably exist.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.