hide popup message if failure is handled - not sure what knock on effect this may...
[Pman.Core] / Pman.Include.js
index e69de29..3959cb4 100644 (file)
@@ -0,0 +1,31 @@
+/**
+ * include a script -- normaly used for testing..
+ *
+ *
+ */
+
+
+Pman.Include = function(sp) {
+    
+    Pman.Include.script(sp, true);     
+     
+}
+
+Pman.Include.cached = function(sp) {
+    Pman.Include.script(sp, false);
+     
+}
+
+Pman.Include.script = function(sp,cached) {
+    var head = document.getElementsByTagName("head")[0];
+    
+    var script = document.createElement("script");
+    script.setAttribute("src",  rootURL + sp    +
+              ( cached ? '' :     '?ts=' + Math.random() )
+            );
+    script.setAttribute("type", "text/javascript");
+    //script.setAttribute("id", trans.scriptId);
+    head.appendChild(script);
+     
+}
\ No newline at end of file