Hi all.
I have an applet, it connect to a DB2 database and show to the user a list of product, them it select one and insert in a list, an repeat…when he stop to include product, it press OK buttom and the data are store on the notes field…
BUT, if i select a lot of product, i lost the connection with the server (the timeout are finish)…so, my question is, when i work inside an applet, for http task, i’m an “idle session”???
If it is true, what can i do to mantem the connection “alive”?? because i lost all my entries…
Thanks in advance!
Daniela
Subject: Is an applet an idle connection for http server task?
Yes, the applet is speaking to a different server on a different port so your HTTP session on Domino is idle the whole time. You need to make a request every once in a while to keep your Domino session alive. You can do that with an XMLHttpRequest in the background (same port as the rest of the HTTP), just asking for something small (a blank Navigator with a small “Treat as Other: text/xml” $$NavigatorTemplate or something). Jake Howlet is exploring some Ajax stuff over at codestore.net right now, Dani, so you can pick the code up there if you’re not doing XMLHttpRequest already.
Subject: RE: Is an applet an idle connection for http server task?
Thanks Stan! I looking the information there!
Daniela