Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JavaScriptQuestions Parent child windows relationships when webpage is accesssed through a hyperlink.
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Naseem akthar
Parent child windows relationships when webpage is accesssed through a hyperlink.
0 Answer(s)      3 years and 10 months ago
Posted in : JavaScript Questions


A particular session timeout functionality works when a webpage is loaded. The webpage has parent/child windows. This timeout functionality works in the parent window(home page) even when the child windows are open. And so i included the following code.

function checkForParent() {
try {
var x_win = window.self;
while(x_win!="undefined")
{
if(typeof(x_win.opener)=="undefined") {
x_win.resetSessionCounter();
break; }
else {
xwin = xwin.opener;
} } }
catch(e) {
window.status="Exception occurred during session counter update "+e.description; } }

But when the same webpage is accesssed through a hyperlink the time out functionality does not work. this may be because the code takes the page which has the hyperlink as the parent and never calls the resetSessionCounter() function.Please help me out to solve this issue so that the functionality works even when the webpage is accessed through a hyperlink.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Parent child windows relationships when webpage is accesssed through a hyperlink.
Parent child windows relationships when webpage is accesssed through... is loaded. The webpage has parent/child windows. This timeout functionality works in the parent window(home page) even when the child windows are open. And so i
when update is done on parent object child object is also updated
when update is done on parent object child object is also updated  here is my code.. Hibernate-1...;/class> when am trying to update actual_object hibernate is also updating
Advertisements
parent and child dropdown
parent and child dropdown  Hi, I have one scenario in spring,i need to populate child drop down,based on parent dropdown using spring mvc and ajax... know how to use it in child drop down.How to set that child dropdown in success
Passing values from child window to parent window.
Passing values from child window to parent window.  Hai, I'm having a requirement ,in that when i open a (pop-up)child window from a parent window,the child window will contain multiple checkboxes and when i select multiple
Building a Parent Child relationship XML
Building a Parent Child relationship XML   PARENT CHILD 10788009 10788003 10788003 10788004 10788004 10788010 10788004 10788011 10788003 10788005 10788005 10788012 10788012 10788013 10788013
Passing values from child window to parent window.
Passing values from child window to parent window.  http://www.roseindia.net/java/pass-value-example/pass-value-child-to-parent.shtml I have gone thru the link but my requirement is checkboxes.can u please explain
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page
how to call the parent page from child without refreshing the parent and my parent window uses the master page   how to call the parent page from child without refreshing the parent and my parent window uses the master page
Pass value from child to parent window
: This the child widow which will be open when we open it from the parent window... Pass value from child to parent window   ... to parent window We can pass values from a child window in Html to the parent
Simple but confusing code... Parent obj1 = new Parent(); Parent obj2 = new Child();
Child();  Hi friends I got confused in the below code snippet: Parent obj1 = new Parent(); Parent obj2 = new Child(); Here we have created obj1 object.... Then we create Parent obj2 = new Child(); <--------------- here in this code
Parent - child jsp communication - JSP-Servlet
Parent - child jsp communication  Hello, Thanks for your answers to my previous tech query. This time too, I do have a couple of questions. 1) How could I pass values from a parent jsp to a popped up child jsp
Parent - child jsp communication - JSP-Servlet
Parent - child jsp communication  Hello, Thanks for your answers to my previous tech query. This time too, I do have a couple of questions. 1) How could I pass values from a parent jsp to a popped up child jsp
Call the parent page(uses master page) from the child page
Call the parent page(uses master page) from the child page  how to call the parent page from child without refreshing the parent and my parent window uses the master page
Call the parent page(uses master page) from the child page
Call the parent page(uses master page) from the child page  how to call the parent page from child without refreshing the parent and my parent window uses the master page
Relative positioning of the child window on top based on the movement of parent window
Relative positioning of the child window on top based on the movement of parent window  Relative positioning of the child window on top based on the movement of parent window
Retrieving the Parent and Child Nodes of a Preference Node
Retrieving the Parent and Child Nodes of a Preference Node... are going to retrieve the Parent and Child nodes of a Preference Node. You can see...() returns the parent node. We are using the method  prefs.childrenNames
Populating values from Child Popup Jsp to Parent jsp
Populating values from Child Popup Jsp to Parent jsp  Hi, My requirement follows like this.. I have a parent jsp where u have search button. If u... jsp should get closed and inturn it should be populated in parent jsp within
Login Box appears when a button on the webpage is clicked
Login Box appears when a button on the webpage is clicked  How to create a Login Box on a web page that appears only when a button that is already present on the page is clicked
Login Box appears when a button on the webpage is clicked
Login Box appears when a button on the webpage is clicked  How to create a Login Box on a web page that appears only when a button that is already present on the page is clicked
Login Box appears when a button on the webpage is clicked
Login Box appears when a button on the webpage is clicked  How to create a Login Box on a web page that appears only when a button that is already present on the page is clicked
Page is not getting loaded when I refresh the webpage???
Page is not getting loaded when I refresh the webpage???  **I am loading an image section(image,demo link,Zoom) in a webpage by using javascript... when I refresh the page.* Note: Header section is getting loaded always Could
Java - looking for a tool to force-kill a child process (Windows)
Java - looking for a tool to force-kill a child process (Windows)  ...-kill a child process. This tool/package/library must work on Windows platform... a child process that will simply not react to the standard Java way
hyperlink
hyperlink  I have a .xls file and i want the code to open this .xls file in read only mode when i click on a hyperlink,it should not not be editable,please send me the code
Child Filter
; Child Filter Child filter basically handles filtration according to parent... Selector It filters all the elements which are first child of their parent... It filters all the elements which are only child of their parent. Example
pass a variable(friends name) through a hyperlink in to another jsp.
pass a variable(friends name) through a hyperlink in to another jsp.  ...,and make a link,when i click on a friends name for showing friend profile... is not showing bcoz when i click on a friends name,all friend name is passed
pass a variable(friends name) through a hyperlink in to another jsp.
pass a variable(friends name) through a hyperlink in to another jsp.  ... a link,when i click on a friends name for showing friend profile... is not showing bcoz when i click on a friends name,all friend name is passed in to the next
webpage
webpage  design a webpage student database using forms and frameset
passing values between jsp file through hyperlink in div tag
passing values between jsp file through hyperlink in div tag  <p>hi please help me to solve this. i have searchproj.jsp and updateproj.jsp. In searchproj.jsp values r retrieved from db as follows </p> <pre class
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?
Will i be able to get the content of a webpage in a word document (Note:i don t have access to the source code)through java code?  public class... document to the webpage(for which i don t have access to source code
How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.
How can I access databse through JSP. I am using postgresql-8.4.4-1-windows as database and jboss-4.0.5.GA as server.  I am using postgresql-8.4.4-1-windows as database, jboss-4.0.5.GA as server and jdk-6-windows-i586 with IDE
 

 

 

DMCA.com