PDA

View Full Version : Loading an external js file into a window



chot2
24 Feb 2012, 3:34 AM
Hello All ,

I have a requirement , I have a popup which gets loaded when a button is pressed . I need a external js file (google apis ) to get loaded when popup is opened .

I searched the forum and found managed iframe
http://www.sencha.com/forum/showthread.php?137233-Ext.ux.ManagedIframe-4.0-alpha2-for-Ext-4.x/page2

my problem here is i m not aware of how integrate it in my application . Is there any other way to load that particular js file .

tobiu
24 Feb 2012, 5:38 AM
dougs managed iframe ux is quite easy to use, just include the file(s) into your app, for example with the ext.loader or put a script tag into your index.html.

popup means new browser window or an ext window?

if you are using an iframe, you can simply include the js files in the loaded html file as well.

chot2
24 Feb 2012, 5:57 AM
thanks tobiu,

popup is a new window , where their are few texfeilds . Inside one of these feilds i need to load the google autocompletion api .