Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: add new Option in frame


Message #1 by sstav@i... on Fri, 1 Mar 2002 13:59:28
is the frame you are trying to call the function from exist in the same 
domain as the one the function is in.

At 13:59 01/03/02 +0000, you wrote:
>The problem is  that i want to pass data to a frame named center from an
>other frame
>when i call the following function in a frame  it  doesn't work at all .
>When i call the same function from the same frame ("center") it is just
>fine
>
>function additemToCenterFrame(name,id){
>         mainFrame=window.top.center.document.form1 ;
>         _option=new Option(name,id) ;
>         mainFrame.test.options[0]=_option ;
>}
>
>any ideas ?
>
>$subst('Email.Unsub').



  Return to Index