Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Communicating from an iframe


Message #1 by "Peter Byers" <pb@s...> on Thu, 25 Jul 2002 17:23:43
Chris
    Thanks - works - brilliant
Pete (Northolt UK)

> Hi Peter,

>     I have a problem communicating data from a page in an iframe back to
> the page containing the iframe.
>
>     I have reduced the code to an absolute minimum to get rid of
> extraneous stuff. To make it easy to read and simple to understand it is
> described in a web page at :-
>
>         http://217.72.167.102/PROBLEM.HTM

I think this should do the trick (note the form reference as well as
window.parent)...

function upDate() {
 window.parent.document.forms.PAGE_NAME.HID_PAGE.value =
document.TRY_IT.IFRAME_INPUT.value
 window.parent.upDate()
}

HTH,

Chris


  Return to Index