• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Monitoring the Activity in an HTML Frame.

 
Ranch Hand
Posts: 59
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

My Requirement goes like this. I got a jsp which includes an frameset just like below.



Here the second frame jsp is not constant...and it changes throughout the application.

I like to write a javascript method which is able to monitor the activities in an frame. If no activity is performed for 60 mins then we should be able to display an alert.

 
author & internet detective
Posts: 41986
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is no interaction with the server considered no activity? If so, you can write a method in JavaScript (that loads in the frame) if the page is there for an hour. To include common code in every frame (except the header), you can use Tiles or include a tag.
 
Ravi Majety
Ranch Hand
Posts: 59
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Jeanne,


Yes you are right. My main objective is to provide an alert message for the user just 5 minutes before session timeout occurred. Here my approaches goes like these

1. I need either jsp as you said which refreshes for every request or included in every jsp , in which i will write a javascript method to perform the same.
2. As the code given before i like to monitor the activity of the frame so that i can give the alert message if no activity is performed for some predefined time.


Can you please provide me the suggestions if any regarding either of the above techniques to implement the process.
 
I guess I've been abducted by space aliens. So unprofessional. They tried to probe me with this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic