Click to See Complete Forum and Search --> : frames in childwindow


sivasankari
01-06-2004, 04:53 AM
hai,
i have a parent page called a.aspx from where i am popping a child window to fill a textarea which is in parent window. child window consists of frames head n main, in which head frame is pointing to one aspx page n main frame pointing to html page. There is a submit button in main frame, on clicking the button i need to refer a value from head frame n fill it in the parent window.i tried referring like

eval(parent.window.header.document.forms[0].hidAdd.value);

to call a function, where in the hidAdd will be having some fn as the value.

The above statement works in windows IE and is not working in Mac netscape. If anyone knows the alternative, kindly let me know.

Thanks

eviljoker7075
01-06-2004, 05:14 AM
what's a child window please?

Kor
01-06-2004, 05:35 AM
Let's see if I understood well

You want:

1. refere to a value from head to main?

try
top.frames[name_of_frame].document...blabla

2.pass the value to the parent page?

try
window.opener.document...blabla
or
window.opener.a_function(param)

Kor
01-06-2004, 05:39 AM
what's a child window please?


a second page open from within another page (called parent) using a simple HTML a href line or a javascript window.open() method. In this case is a pop-up window (child which contain 2 frames) opened from another page (parent).

sivasankari
01-07-2004, 10:14 PM
thans a lot KOR, problem is solved