Displaying 1 result from an estimated 1 matches for "scriptbase".
Did you mean:
scriptable
2009 May 31
7
[mapstraction commit] r11 - Added functionality to automatically load scripts needed.
...n.js Sun May 31 11:13:23 2009
@@ -3,8 +3,56 @@
// holds all our implementing functions
var apis = {};
+ // ''Constructor''
+ (function() {
+ // Defaults
+ var providers = ''google,yahoo,microsoft'';
+ var modules = ''core'';
+ var scriptBase;
+ var scripts = document.getElementsByTagName(''script'');
+
+ for (var i = 0; i < scripts.length; i++) {
+ var match =
scripts[i].src.replace(/%20/g , '''').match(/^(.*?)mxn\.js(\?\(\[?(.*?)\]?\))?$/);
+ if (match != null) {
+ scriptBase = match[1];
+...