Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-25-2005, 05:37 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,532
sde is on a distinguished road
maintaining child relation between pages

i want to lanch a child window, then be able to click a link from the parent window, and then on the next page be able to access the child again.

steps:

1. page 1 launches a child window
2. click a link which takes me to page 2 from the page 1 window
3. click a link on page 2 that closes the child.

can you maintain the relationship to a child window in between pages?

HTML Code:
var mywin = window.open( 'child.html', 'mywin', 'scrollbars=yes,resizable=yes,status=yes,width=640,height=480,left=0,top=0');
that is the code i'm using to pop the child window.

on page 2, window['mywin'] is undefined. as i understand it, i should be able to access that variable. i've tried variations of calling it, but i just can't get it.

it needs to work in IE. any insight on this?
__________________
Mike
sde is offline   Reply With Quote
Old 05-26-2005, 12:09 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Create a hidden frame, where you store all info on your child which floating around.
The reference the needed objects through your parent.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pen-size scanner captures full pages redhead Code Newbie News 0 09-27-2004 07:59 AM


All times are GMT -8. The time now is 01:30 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting