Re: [PHP] passing variables from - to frames

2001-06-27 Thread Richard Lynch

framea and frameb don't know about each other, but their document and their
window should know both of them.

So, you can use document.framea... and document.frameb... to access each
other's variables.

Also, if these variables are coming from PHP, and if you are using FRAMEs
mostly for looks, and not so much to save downloading one of the frames all
the time, another alternative, avoiding JavaScript, which you can never
trust to be on, much less to work properly when it is on, is to actually
send all your links back to the main frameset page, and pass the variables
down in parallel:

 main.php 
?php
$foo = isset($foo) ? $foo : '';
?
HTML
  FRAMESET
FRAME SRC=framea.php?foo=?php echo urlencode($foo);?
FRAME SRC=frameb.php?foo=?php echo urlencode($foo);?
  /FRAMESET
/HTML

 framea.php
HTMLBODY
?php
echo foo is $fooBR\n;
?
A HREF=main.php?foo=bar TARGET=_topbar/A
A HREF=main.php?foo=different TARGET=_topdifferent/A
/BODY/HTML

 frameb.php
HTMLBODY
?php
echo foo is $fooBR\n;
?

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] passing variables from - to frames

2001-06-27 Thread elias

Hey sorry 'M' about my last post...

I was giving you ideas mixed with how to access an IFRAME ;)

anyway to access frames you have to do like:

window.parent.framea.window.document.forma.texta.value =
window.parent.frameb.window.document.formb.textb.value

M [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello, sorry this question here (it is not true PHP question), but I use
 some variables into PHP scripts and need
 pass these variables from one frame to another.

 I want pass variable values between frames, these definded via input
 hidden tags into form definition.
 I have first frame name=framea containing form name=forma
 then second frame name=frameb form name=formb
 I have forma input type=hidden name=vara value=valuea and want to pass
 this value to formb type=hidden name=varb

 I wrote little javascript into framea something like
 frameb.formb.varb.value = framea.forma.vara.value  but only got
 'javascript error'. Java doesnt reckognizes frameb.formb.varb names at
 all. I tried also by creating object id=frameb into frameb header
 but this also didnt work.
 Is there some other solution?

 Please help to solve this one

 Thanks very much

 Miguel



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] passing variables from - to frames

2001-06-27 Thread Taylor, Stewart

The correct javascript syntax is.

parent.frames[1].document.formb.varb.value =
parent.frames[0].document.forma.vara.value;

-Stewart

-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]]
Sent: 26 June 2001 16:18
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables from - to frames


 Hello, sorry this question here (it is not true PHP question), but I use
 some variables into PHP scripts and need
 pass these variables from one frame to another.

 I want pass variable values between frames, these definded via input
 hidden tags into form definition.
 I have first frame name=framea containing form name=forma
 then second frame name=frameb form name=formb
 I have forma input type=hidden name=vara value=valuea and want to pass
 this value to formb type=hidden name=varb

 I wrote little javascript into framea something like
 frameb.formb.varb.value = framea.forma.vara.value  but only got
 'javascript error'. Java doesnt reckognizes frameb.formb.varb names at
 all. I tried also by creating object id=frameb into frameb header
 but this also didnt work.
 Is there some other solution?


If you're using Apache, you can use $QUERY_STRING



destiney - (des-ti-ny) - n. 1. deity of all things html, 2. common
internet addict, 3. lover of late 80's heavy metal music, 4. Activist
for the terminally un-elite; see also - cool guy, des, mr. php...

It's 4:00am, your web site is still up, why are you?
http://phplinks.org/ http://destiney.com/





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] passing variables from - to frames

2001-06-26 Thread elias

I think it works just fine,

maybe you can try:

framea.document.forma.vala.value = frameb.document.formb.valb.value

if this didn't work then change to:
framea.window.document.forma.vala.value = 

It worked with me time ago...

M [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello, sorry this question here (it is not true PHP question), but I use
 some variables into PHP scripts and need
 pass these variables from one frame to another.

 I want pass variable values between frames, these definded via input
 hidden tags into form definition.
 I have first frame name=framea containing form name=forma
 then second frame name=frameb form name=formb
 I have forma input type=hidden name=vara value=valuea and want to pass
 this value to formb type=hidden name=varb

 I wrote little javascript into framea something like
 frameb.formb.varb.value = framea.forma.vara.value  but only got
 'javascript error'. Java doesnt reckognizes frameb.formb.varb names at
 all. I tried also by creating object id=frameb into frameb header
 but this also didnt work.
 Is there some other solution?

 Please help to solve this one

 Thanks very much

 Miguel



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] passing variables from - to frames

2001-06-26 Thread Greg Donald

 Hello, sorry this question here (it is not true PHP question), but I use
 some variables into PHP scripts and need
 pass these variables from one frame to another.

 I want pass variable values between frames, these definded via input
 hidden tags into form definition.
 I have first frame name=framea containing form name=forma
 then second frame name=frameb form name=formb
 I have forma input type=hidden name=vara value=valuea and want to pass
 this value to formb type=hidden name=varb

 I wrote little javascript into framea something like
 frameb.formb.varb.value = framea.forma.vara.value  but only got
 'javascript error'. Java doesnt reckognizes frameb.formb.varb names at
 all. I tried also by creating object id=frameb into frameb header
 but this also didnt work.
 Is there some other solution?


If you're using Apache, you can use $QUERY_STRING



destiney - (des-ti-ny) - n. 1. deity of all things html, 2. common
internet addict, 3. lover of late 80's heavy metal music, 4. Activist
for the terminally un-elite; see also - cool guy, des, mr. php...

It's 4:00am, your web site is still up, why are you?
http://phplinks.org/ http://destiney.com/





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]