Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Accessing function in other frame


Message #1 by "chandrabhan_dutta" <chandrabhan_dutta@i...> on Tue, 29 Oct 2002 09:59:49 +0530
How about this ?

try {
	parent.fra_main.fnCheckWindow()
} catch (e) {
}

> But it says : fnCheckWindow is not defined
> 
> Regards,
> Chandrabhan Dutta Majumdar
> 
> -----Original Message-----
> From: Roy Koczela [mailto:rkoczela@a...]
> Sent: Tuesday, October 29, 2002 10:37 AM
> To: javascript
> Subject: [javascript] RE: Accessing function in other frame
> 
> 
> I think 
> 
> if (parent.frames.fra_main.fnCheckWindow !=null) {
> 	parent.frames.fra_main.window.fnCheckWindow();
> }
> 
> should work.  
> 
> -----Original Message-----
> From: chandrabhan_dutta [mailto:chandrabhan_dutta@i...]
> Sent: Monday, October 28, 2002 8:30 PM
> To: javascript
> Subject: [javascript] Accessing function in other frame
> 
> 
> Hi All,
> 
> I have two frames. from one frame i am calling a function in 
> other frame as
> shown below:
> 
> parent.frames.fra_main.window.fnCheckWindow()
> 
> Now, how do I check whether the function exists or not? right 
> now if it is
> not there, javascript error comes.

  Return to Index