For Programmers: Free Programming Magazines  


Home > Archive > Java Help > March 2004 > Get value from "child" frame









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Get value from "child" frame
Si

2004-03-27, 12:30 am

I have a main ("parent") frame that opens up another frame (with an OK
button) on the click of a button. How do I get a value stored in a variable
within the "child" frame back to the parent frame when the user clicks on
the child frame's OK button?

Apologies for the simple question...

TIA


Si

2004-03-27, 12:30 am

"nos" <nos@nospam.com> wrote in message
news:cnm8c.83464$1p.1226392@attbi_s54...
> use the reference from when you created the child


It gets update within the child frame though.


nos

2004-03-27, 12:30 am


"Si" <si@spamtrap.com> wrote in message
news:c3t12e$29h9br$1@ID-83837.news.uni-berlin.de...
> "nos" <nos@nospam.com> wrote in message
> news:cnm8c.83464$1p.1226392@attbi_s54...
>
> It gets update within the child frame though.
>

ok I think I see now, you need to pass a reference
to the parent at the time the child is created, a so-called
back pointer - it is an ugly solution
perhaps someone else knows better


nos

2004-03-28, 12:01 am

use the reference from when you created the child

"Si" <si@spamtrap.com> wrote in message
news:c3solk$2cp23f$1@ID-83837.news.uni-berlin.de...
> I have a main ("parent") frame that opens up another frame (with an OK
> button) on the click of a button. How do I get a value stored in a

variable
> within the "child" frame back to the parent frame when the user clicks on
> the child frame's OK button?
>
> Apologies for the simple question...
>
> TIA
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com