<div dir="ltr">"confirm" is a JS method which creates a yes/no dialog. You probably need the $.get(remoteURL) call to update a session cookie. Your best bet is to override callServer with the exact same code, but instead of confirm use var extend_session=true</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 10, 2014 at 10:04 AM, Michael Lechasseur <span dir="ltr"><<a href="mailto:mlecha@artengine.ca" target="_blank">mlecha@artengine.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Looking into writing a little Chrome Extension or Firefox add-on to
automatically click OK on a specific dialog to keep a user logged in
and retain her sanity.<br>
<br>
The dialog looks like this in Firefox. Not sure if that's a native
dialog or something created by javascript, or even if the two would
even look dissimilar?<br>
<br>
<img src="cid:part1.08090906.04040201@artengine.ca" alt=""><br>
<br>
Code on the page:<br>
<br>
function callserver()<br>
{<br>
<br>
var extend_session = confirm("Your session is about to
expire. Press OK to keep your session active.");<br>
if (extend_session == true) <br>
{<br>
var remoteURL = '//includes/session.cfm';<br>
$.get(remoteURL, function(data){<br>
//do nothing<br>
});<br>
}<br>
<br>
}<br>
<br>
Any thoughts? Perhaps just override the callserver() function
somehow and return TRUE?<br>
<br>
<br>
<br>
</div>
<br>_______________________________________________<br>
Lab mailing list<br>
1. subscribe <a href="http://artengine.ca/mailman/listinfo/lab" target="_blank">http://artengine.ca/mailman/listinfo/lab</a><br>
2. then email <a href="mailto:Lab@artengine.ca">Lab@artengine.ca</a> to send your message to the list<br></blockquote></div><br></div>