Faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

36 of 49 people (73%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How do I Call a funtion from another frame?
in NN: frame1 calls func in frame2 on diff. dir-level. all refs in function are relative to callers

Dec 17th, 2000 15:52
Narayanan Sankaranarayanan, held op sokken, hans spoelstra, How do I call a function from another frame?


Hi,
This is Ryan Norman ( Narayanan Sankaranarayanan ). 
Let us assume that a page has two frames. First one named winShowField 
and the second one named winShowCondition. A button in the second frame 
( winShowCondition ) can be coded like this.
					<input type="button" 
name="cmdClear" value="Clear" onClick="return( top.frames
[ 'winShowField' ].validateClear() );">
Hope this helps
Ryan Norman ( Narayanan Sankaranarayanan )