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

 
 


Naseem akthar
Parent child windows relationships when webpage is accesssed through a hyperlink.
0 Answer(s)      2 years and 2 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.

View Answers









Related Pages:
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
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
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
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
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
reload parent window - WebSevices
reload parent window  Hi, Here I have a code for close child window and reload parent window. window.opener.location.href="http://www.mysite.net/example.php"; self.close(); Its working properly when User enters
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
Hibernate One-to-many Relationships
Hibernate One-to-many Relationships       Hibernate One-to-many Relationships... you will learn one-to-many relationships developed using the hmb.xml file
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
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
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
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
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
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
Child GPS tracking device
city life when both the parents of a child are working, they don?t get time...Child GPS tracking device Think, if you are in a crowded market with your child and turned back for a second and your child is not there? It's a horrible
Hibernate Relationships - Hibernate Relationships mapping example
Hibernate Relationships - Hibernate Relationships mapping example In this tutorial we will learn how to create relationships among the Entity. We will learn Hibernation Relationships mapping in detail
Open InternetExplorer Webpage with Java - Java Beginners
Open InternetExplorer Webpage with Java  Hello Sir I want to Open my webpage from swing application when I Click On "VISIT US" Boutton then website... { if (osName.startsWith("Windows")) Runtime.getRuntime().exec
Hibernate one-to-one relationships
Hibernate one-to-one relationships  How does one to one relationship work in Hibernate?   Hibernate Mapping One-to-One Hibernate provides facility of mapping. You can do mapping through hbm.xml or through annotation
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
Hibernate Many-to-one Relationships
Hibernate Many-to-one Relationships... Relationships - Many to one relationships example using xml meta-data This current example demonstrates the use of Many  to one relationships. We will use
passing values in hyperlink
passing values in hyperlink  Hi. I have given a hyperlink in one jsp page. Can i able to pass that hyperlink label as a value to the next page its navigating when the user clicks it. Plz respond me quickly. Thanks in advance
passing values in hyperlink
passing values in hyperlink  Hi. I have given a hyperlink in one jsp page. Can i able to pass that hyperlink label as a value to the next page its navigating when the user clicks it. Plz respond me quickly. Thanks in advance
passing values in hyperlink
passing values in hyperlink  Hi. I have given a hyperlink in one jsp page. Can i able to pass that hyperlink label as a value to the next page its navigating when the user clicks it. Plz respond me quickly. Thanks in advance
passing values in hyperlink
passing values in hyperlink  Hi. I have given a hyperlink in one jsp page. Can i able to pass that hyperlink label as a value to the next page its navigating when the user clicks it. Plz respond me quickly. Thanks in advance
passing values in hyperlink
passing values in hyperlink  Hi. I have given a hyperlink in one jsp page. Can i able to pass that hyperlink label as a value to the next page its navigating when the user clicks it. Plz respond me quickly. Thanks in advance
eclips hyperlink - JSP-Servlet
eclips hyperlink  In my myeclipse if hyperlink is provided in any application , it's not working when I deploy it. I also use net at my PC, is there any problem due to IP Address
webpage
webpage  design a webpage student database using forms and frameset
JavaMail and Gmail in Windows - JSP-Servlet
to send and receive emails through Gmail SMTP server. It worked fine in Windows 7 but when I try to run the same program in Windows XP in a different machine... by default in Windows 7. The program is= /* * SendMail.java * * Created
Windows 8 versus Android
Windows 8 has launched at a time when the much thrived smart phone and tab... in touch with your desktop through your personal tablet when you are out... up to Microsoft in the duel between Windows 8 versus Android, when it is about
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
How To Install Windows 8
In this tutorial we will discuss about how to install windows 8 on your computer. Microsoft has come up with the latest version of operating system Windows 8 and if you are willing to install the latest version of Windows 8 in your
Use of "parent" in XPath expression
Use of "parent" in XPath expression   ... how to use child axis in XPath expression . Now this section will describe the use of "parent" axis. "parent" axis consists of parent
Is Window 8 better than Windows 7?
With release of Windows 8 its comparison with Windows 7 is inevitable. Most of the users are in dilemma to whether or not to upgrade to windows 8. Is Windows 8 better than windows 7, its predecessor? Here we will give a point wise
Main Thread and Child Thread
and Child Threads used in Programming. Main thread is automatically created when program runs. Child Thread gets created by the main thread . Java Main...("Child "); for (int x = 1; x <= 3; x++) { System.out.println(x
Java file get parent directory
directory is : " + parent); } } Through the method getParent(), you can...Java file get parent directory In this section, you will learn how to get the parent directory of the file. Description of code: The package java.io.
How to create a JTable cell containing Image hyperlink?
How to create a JTable cell containing Image hyperlink?  I'm trying... be clickable like an hyperlink. I'm able to load Image using default image renderer. Can somebody explain me how to add hyperlink (mouse listener) for the each

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.