View Full Version : Using Ext JS across multiple documents

27 May 2009, 5:12 AM
I'm using Ext JS in a couple of projects: one is a fairly standard business application, the other is a Firefox extension...

The extension has multiple XUL browser elements, and each has a standard HTML document (DOM).

The problem is I want a single instance of Ext JS to run at the top most level, but to act on the separate document objects.

There are a lot of places in the Ext JS source that explicitly refer to the JavaScript document object, but I need this to be variable. Apart from replacing every occurence with a variable and adding an extra parameter to hundreds of functions, is there a way to achieve this?