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
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 05-25-2005, 04:37 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,397
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?
__________________
testing 1 2 3
sde is offline   Reply With Quote
Old 05-25-2005, 11:09 PM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,680
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


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

vB 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 06:59 AM
.htaccess -- Custom Error Pages v1.1 DavH27 HTML / CSS 0 08-26-2004 04:40 PM
Validating Your Pages With the W3C Markup Validator verto HTML / CSS 0 08-11-2003 06:17 PM


All times are GMT -8. The time now is 06:22 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle