<html><body><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><div>my knowledge of javascript is low to minimal, but ...<br></div><div>could you periodically just call </div><div><br></div><div><span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"> <span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"> var remoteURL = '//includes/session.cfm';</span> </span></div><div><span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"> $.get(remoteURL, function(data){</span><br style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"><span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"> //do nothing</span><br style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"><span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"> });</span></div><div><span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;"><br></span></div><div><span style="font-family: Helvetica, Arial, sans-serif;" data-mce-style="font-family: Helvetica, Arial, sans-serif;">Maybe use greasemonkey?</span></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Michael Lechasseur" <mlecha@artengine.ca><br><b>To: </b>"lab" <lab@artengine.ca><br><b>Sent: </b>Tuesday, June 10, 2014 10:04:23 AM<br><b>Subject: </b>[Lab] Automatic OK dialog for a specific site - Browser Extension<br><div><br></div>
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>
<br>_______________________________________________<br>Lab mailing list<br>1. subscribe http://artengine.ca/mailman/listinfo/lab<br>2. then email Lab@artengine.ca to send your message to the list</blockquote><div><br></div></div></body></html>