| Author |
how to refer to new window using javascript
|
Karishma Kuriachan
Greenhorn
Joined: Sep 19, 2007
Posts: 5
|
|
Hi, I need to open a new window(having same url as parent window )from the parent window with header and footer disabled. So I need the control of the new window before it is fully loaded so that I can disable header and footer of new window from the parent window. Can you please suggest some solutions for this problem.
|
 |
amit pandit
Greenhorn
Joined: Mar 01, 2007
Posts: 23
|
|
hey what do you mean by header and footer disabled ?? can you give some explaination Amit Pandit
|
 |
Karishma Kuriachan
Greenhorn
Joined: Sep 19, 2007
Posts: 5
|
|
Hi, What I meant by header and footer disabled is I need the new window with some filelds not present. In my parent window I will have some secondary navigation,left navigation and footer and I dont want to see it in the new window. SO I need to disable these fields before I get the new window keeping parent window not affected(ie it should be as same as earlier).
|
 |
amit pandit
Greenhorn
Joined: Mar 01, 2007
Posts: 23
|
|
Hi, Is your secondary navigation and footer display code on a web page ? If yes, then how can you enable or disable it? I guess, it is done by some conditional arguments on PageLoad() event. so by checking some page properties like title, you can distinguish between parent window and child window. and according to that on PageLoad() event you can enable or disable your code stuff. if my answer is not up to mark, please ask your question with some code to undestand your problem correctly. bye Amit Pandit
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
Hi, much like your other post about opening windows, you can set variables on the child window before the child page loads: The child can manipulate the visibility of divs based on window.showFooter. Hmmm, I'm not sure how or where to do that so you don't see the visibility change.
|
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
|
 |
Karishma Kuriachan
Greenhorn
Joined: Sep 19, 2007
Posts: 5
|
|
Hi, Actually the problem is that i don't get showFooter element of child in the parent window unless the page is completeley loaded..... code: --------------------------------------------------------------------------- var child = open(...); /* say here if you try to get getElementById("showFooter").. will return a null value..*/ child.showFooter = false; ---------------------------------------------------------------------------
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
Why don;t you pass the values in as querystrings and have the server read the querystring value and hide the elements automatically? Eric
|
 |
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
|
|
|
Much, better than my suggestion. Thanks!
|
 |
 |
|
|
subject: how to refer to new window using javascript
|
|
|