outaTiME
26 Oct 2011, 2:33 PM
Hi guys,
Im rebuilding my old application and and would like to use ext loader to "load" my third party libraries ... for example Google Maps ...
mmm I imagine something like that ...
Ext.require('Google.API.Maps', function () {
alert('coool not ?');
});
browsing some code from "VinylFox" ... he implements a Google Maps Panel and to perform the Google Maps load ... do some tricky code ... creating DOM script on the fly and inject into the code ... but i dont really like that way ... soooo ugly men ...
full source here:
https://github.com/VinylFox/ExtJS.ux.GMapPanel/blob/master/src/GMapPanel3.js#L272
(https://github.com/VinylFox/ExtJS.ux.GMapPanel/blob/master/src/GMapPanel3.js#L272)
i know the google "loader" way ... they are using defer callback when full module loaded, but will be great a new kind of wrapper for this operations ...
how do you thing ?
Im rebuilding my old application and and would like to use ext loader to "load" my third party libraries ... for example Google Maps ...
mmm I imagine something like that ...
Ext.require('Google.API.Maps', function () {
alert('coool not ?');
});
browsing some code from "VinylFox" ... he implements a Google Maps Panel and to perform the Google Maps load ... do some tricky code ... creating DOM script on the fly and inject into the code ... but i dont really like that way ... soooo ugly men ...
full source here:
https://github.com/VinylFox/ExtJS.ux.GMapPanel/blob/master/src/GMapPanel3.js#L272
(https://github.com/VinylFox/ExtJS.ux.GMapPanel/blob/master/src/GMapPanel3.js#L272)
i know the google "loader" way ... they are using defer callback when full module loaded, but will be great a new kind of wrapper for this operations ...
how do you thing ?