blob: 088a80a1d1592f9b71eb44b46ae5e0bc8a982447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
function dhtmlLoadScript(url) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}
function dhtmlLoadScriptIFrame(iframeId, url) {
var iframe = document.createElement("IFRAME");
iframe.style.display="none";
iframe.name = iframeId;
iframe.id = iframeId;
iframe.src = url;
document.body.appendChild(iframe);
//var iframeDocument = window.frames[iframeId].document;
//iframeDocument.write('<script src="', url, '" type="text/JavaScript"><\/script>');
}
function staticLoadScript(url)
{
document.write('<script src="', url, '" type="text/JavaScript"><\/script>');
}
function initialize() {
//alert('will load sotre.js from nodeA');
//dhtmlLoadScriptIFrame("iframe", "http://localhost:8100/store/nodeA/store.html");
//alert('will load sotre.js from nodeB');
//dhtmlLoadScriptIFrame("iframe2","http://localhost:8200/store/nodeB/store.html");
}
/** End of Apache Tuscany SCA Widget */
|