Access another frame controls (or parent window controls)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nataly_gm
Posted On:   Wednesday, October 16, 2002 11:59 AM

Hi, I am using 2 frames and want to pass values from one to another (form fields), I am using "window.parent.frames.firstFrameName..." to access one frame controls from another, IE does it well, but I get JS errors when I use NETSCAPE - "Error: uncaught exception: Permission denied to get property Window.frames" Similiar thing happens when I call from pop-up window to "opener.document.childFRM.myField.value=document.parentFRM.myField.value" - "Error: uncaught exception: Permission denied to set property HTMLInputElement.value" Page sources are JSP from my site, which is run by tomcat on apache.    More>>

Hi,

I am using 2 frames and want to pass values
from one to another (form fields),

I am using "window.parent.frames.firstFrameName..."
to access one frame controls from another,

IE does it well, but I get JS errors when I use NETSCAPE -
"Error: uncaught exception: Permission denied to get property Window.frames"



Similiar thing happens when I call from pop-up window to
"opener.document.childFRM.myField.value=document.parentFRM.myField.value" -

"Error: uncaught exception: Permission denied to set property HTMLInputElement.value"


Page sources are JSP from my site, which is run by tomcat on apache.


Is there any workaround that solves this problem?


Perhaps this is more Java related problem..?


Pleeease help!

   <<Less

Re: Access another frame controls (or parent window controls)

Posted By:   Nitesh_Naveen  
Posted On:   Thursday, October 17, 2002 01:37 AM

Try using
window.parent.frames["firstFrameName"].document.formname.elementname.value
and
window.opener.document.forms["parentframe"].fieldname.value=document.childfrm.fieldname.value
About | Sitemap | Contact