JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2059
Number of posts: 5161

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to call a function from another frame Posted by nutytyfella on 23 Oct 2002 at 10:51 PM
is it possible to call a function that belongs to another frame?
if is, how?
if it isn't, any alternatives?

thanks alot
Report
Re: how to call a function from another frame Posted by Souldrinker on 24 Oct 2002 at 12:57 AM
why do you want to do so? just include the script file in every file using <script src="..."> - I guess this is better

best regards,

sebastian mohrenstecher
executive secretary
net::allies

www.net-allies.de
info@net-allies.de

Report
Re: how to call a function from another frame Posted by borislav on 24 Oct 2002 at 1:44 AM
it's the harder way and not very suitable. Often there must be made call to other frame for some kind of action in your web page (even this is a intranet application).
So the method are well known and not very difficult to understand. Here are my suggestion:

parent.Frame_name.func_name([arguments list]);

where: 1)Frame_name is the frame name in the frameset
2)func_name is the name of the function.
That's way for invoke function or use any other global variables may used in any frame on your applications.

that's all folks!!!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.