-
-
Save mapyourproperty/b8c22ec92bf31e647ef5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://app.toronto.ca/DevelopmentApplications/dwr/test/MapSearchService | |
| var reply0 = function(data) | |
| { | |
| if (data != null && typeof data == 'object') console.log(dwr.util.toDescriptiveString(data, 100)); | |
| else dwr.util.setValue('d0', dwr.util.toDescriptiveString(data, 1)); | |
| } | |
| function keep_alive() { | |
| http_request = new XMLHttpRequest(); | |
| http_request.open('GET', "/restricted_file_url"); | |
| http_request.send(null); | |
| }; | |
| setInterval(keep_alive,840000); //My session expires at 15 minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment