Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pop up window

 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Upon clicking a link in my parent window, I have used window.open() funtion to open a child window with specified width and height.
But if i click the link again in my parent window,its opening another new child window instead of reloading in the existing child window.
is it possible to avoid it.,
Regards
Balaji
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balaji,
Could you post your code? It sounds as though your window is opened anonymously, so that the opener window isn't replacing the currently open child window.
g.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Garann,
Here is my javascript function code and html code

Please help.
Regards
Balaji
 
Anu Kha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I copied the code into a html file nothing comes up. Can you please give a code which i can just paste into a file and give it.html extension and see what u r saying. I think this is to do with reclaiming the obj created.
Thanks
If you want to email it to me my email id is ak1303@hotmail.com


Please help.
Regards
Balaji[/qb]<hr></blockquote>
[ August 08, 2002: Message edited by: Anu Kha ]
 
M Suguna
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
In your window.open() call, give a value in the second parameter. Change it to something like this..

It will reload the window instead of opening a new window everytime.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi M Suguna,
Thanks a lot,its working now.
Thanks again.
Hi Anu,
Here the complete code, incase you would like to comment.

Regards
Balaji
[ August 08, 2002: Message edited by: Balaji Loganathan ]
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All;
I've got a question that is somewhat related to this one. If I was using a window to simply write to it instead of linking it to an URL how do I replace the code in the window with new code. Right now I try doing this and the new code being written to it gets concatenated onto what is already there. Any suggestions? Thanks to any suggestions.
Rob
 
Matt Howard
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

the document.open() and close() methods should replace the existing document.
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just came across, MUCH LATER I know. How do you declare the mywindow object? I'm basically using this window as a lookup window. Once a search is complete in the main window I send stuff to this window. On subsequent sends to the window (as I mentioned) things get concatenated on. Do you happen to have a small section of code to illustrate this. I should also point out that I want a bit of control over the open (i.e. statusbar on and resizable enabled). Thanks again.

Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic