0

I have created an Applet and have ebbed it in html. I have java script that is able to handle user idleness and direct the user to login when idle for set timeout period. My problem is when I embed an applet within the same html with same javascript even if there are activities within the applet the java script still directs to the login page. My question is how can I make the html (java script) handle user inactivity within the applet. Here is my code.

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>My Title</title> <script type="text/javascript"> function idleMonitor(){ //code for idle is here } idleMonitor(); </script> </head> <body> <div id="wrap"> <applet id="center_div" code="main.class" archive="MyApplet.jar" ></applet> </div> </body> </html> 
3
  • Have the applet send a heartbeat you can monitor Commented Jul 24, 2015 at 5:51
  • @mplungjan how can I do that do you have a sample code Commented Jul 24, 2015 at 5:59
  • No. Have a search for JavaScript applet Commented Jul 24, 2015 at 6:07

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.