Hi:
I have alreay a web application using Javascript.
The main.html page (below) inculdes two frames:
The upper frame is the top_frame.html which is for the navigation bar;
The lower frame is welcome.html responsible for the detailed dispaly of presenting data,inputting data, etc.
The welcome.html will be redireted to several other pages depending on the user's request,like one.html, two.html, three.html, etc.
Now, I want to add an auto logout to the system. After a webpage is displayed for 20 minutes,the sytem will log out automatically. Although each page presented to the user is composed of two parts, top_frame.html and welcome.html(or one.html, two.html, etc), the actual timeout depends on the lower part only,that is, welcome.html, one.html, two.html, etc. So I have to insert the code window.setTimeout("logout()",1200000) to every file which will appear in the lower frame. But I have almost 50 such files, it is very time consuming.
Is there an easy way to solve this?
Thanks in advance.
Lily
------------------------------------------------------------
Code for main.html
<HTML>
<HEAD>
<TITLE>A Testing Database</TITLE>
<SERVER> db_check_connection(); </SERVER>
</HEAD>
<FRAMESET rows="70,*" BORDER=0>
<FRAME name="header"
src="top_frame.html" NORESIZE SCROLLING="no" FRAMEBORDER="no" >
<FRAME name="display"
src="welcome.html" >
</FRAMESET>
</HTML>
------------------------------------------------------------
I have alreay a web application using Javascript.
The main.html page (below) inculdes two frames:
The upper frame is the top_frame.html which is for the navigation bar;
The lower frame is welcome.html responsible for the detailed dispaly of presenting data,inputting data, etc.
The welcome.html will be redireted to several other pages depending on the user's request,like one.html, two.html, three.html, etc.
Now, I want to add an auto logout to the system. After a webpage is displayed for 20 minutes,the sytem will log out automatically. Although each page presented to the user is composed of two parts, top_frame.html and welcome.html(or one.html, two.html, etc), the actual timeout depends on the lower part only,that is, welcome.html, one.html, two.html, etc. So I have to insert the code window.setTimeout("logout()",1200000) to every file which will appear in the lower frame. But I have almost 50 such files, it is very time consuming.
Is there an easy way to solve this?
Thanks in advance.
Lily
------------------------------------------------------------
Code for main.html
<HTML>
<HEAD>
<TITLE>A Testing Database</TITLE>
<SERVER> db_check_connection(); </SERVER>
</HEAD>
<FRAMESET rows="70,*" BORDER=0>
<FRAME name="header"
src="top_frame.html" NORESIZE SCROLLING="no" FRAMEBORDER="no" >
<FRAME name="display"
src="welcome.html" >
</FRAMESET>
</HTML>
------------------------------------------------------------