You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, October 8th 2009, 6:41am

qt javascript function call

Hi

Yet another question about javascript.

How can I call javascript function from another javascript file?

2

Thursday, October 8th 2009, 9:20am

Afaik, javascript works in some context. If both files are added/parsed/compiled to the context then a function from one file could call a function from another file. imho javascript cannot work with files but if context is html page then it is possible to manipulate DOM and load other file dynamically (create script tag pointing to another file or use document.write).
Fighting fire with fire.
Three can keep a secret if two of them are dead.