Re: passing variables from - to frames
| From: | elias | Date: | Wed, 27 Jun 2001 18:34:43 +0000 |
| Subject: | Re: passing variables from - to frames | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55319@lists.php.net to get a copy of this message | ||
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" <mavem@usa.net> wrote in message news:3B3856E1.DB33AAF@usa.net...
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>