16cd4e1bc2bd6363c0a09f26178ccc5b87441bc6
[Pman.Core] / Pman.Include.js
1 /**
2  * include a script -- normaly used for testing..
3  *
4  *
5  */
6
7
8 Pman.Include = function(sp) {
9     var head = document.getElementsByTagName("head")[0];
10  
11     
12     var script = document.createElement("script");
13     script.setAttribute("src",  rootURL + sp    +'?ts=' + Math.random() );
14     script.setAttribute("type", "text/javascript");
15     //script.setAttribute("id", trans.scriptId);
16     head.appendChild(script);
17     
18     Roo.get(documen.body).appendChild()
19      
20 )
21
22 Pman.Include.cached = function(sp) {
23     var tag = '<script type="text/javascript"  src="' +
24         rootURL + sp     
25     Roo.get(documen.body).appendChild()
26      
27 )