On Thu, 02 Mar 2006 17:03:34 -0800, Konstantin Svist wrote: > one way is to include both files, in correct order, from container (like > an HTML file). The trick is, both files appear in global scope, so 2nd > one should see the defs of the 1st one (but not the other way around)
> <script type="text/javascript" src="a.js"> <!-- defines foxyproxy --> > <script type="text/javascript" src="b.js"> <!-- uses foxyproxy --> > the other way is to use XmlHttpRequest to retrieve source of a.js while > running b.js (and then eval source of a.js). Of course, usual caveats > with using eval apply. ITYM moziJSSubScriptLoader. foxyproxy is, afterall an extension not a remote app. Phil -- Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org Guard us from the she-wolf and the wolf, and guard us from the thief, oh Night, and so be good for us to pass. [ ](A)bort, (R)etry, or (I)nfluence with hammer. * TagZilla 0.059 _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
