How to execute a JS in global scope?
I created one OpenLayers widget with the help of Wt. and I do some
javascript in it
std::stringstream ss;
ss << "var map = new OpenLayers.Map('" + id() + "');"
"var osm = new OpenLayers.Layer.OSM();"
"map.addLayer(osm);"
"map.zoomToMaxExtent();";
doJavaScript(ss.str());
I want variable map to be accessed in a js function from anywhere in the
application?
Is this possible?
--
Regards,
Mohammed Rashad K M
M.S. (By Research) student
Lab for Spatial Informatics
Department of CSE
International Institute of Information Technology
Hyderabad, India
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest