0
正在使用小程序在我的「Extjs UI框架」中。如果我使用「index.html」在下面調用「applet.js」文件,其工作正常。deployJava.runApplet無法正常工作
但是,如果我在任何腳本內部調用,除「.html文件」之外,那麼它不起作用。只是頁面數據被清除並看起來全空頁。你能否告訴我如何解決這個問題。
我需要調用我的「applet.js」劇本,雖然其他「.js文件」,不是通過「.html文件」。可能嗎?請用例子來解釋。
applet.js: - ----------
var attributes = {
tag: 'applet',
code: 'com.src.test.Applet',
archive: 'Test.jar',
width: 1,
height: 1,
id: 'test',
mayscript: true
},
parameters = {
jnlp_href: 'test.jnlp'
};
deployJava.runApplet(attributes, parameters, '1.7');
HTML: - -----
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript" src="applet.js"></script>
</body>
</html>
**Sample code for Calling through other js file:-
-----------------------------------------------**
Ext.namespace('Test');
launch: function() {
this.test();
},
test: function() {
var attributes = {
tag: 'applet',
code: 'com.src.test.Applet',
archive: 'Test.jar',
width: 1,
height: 1,
id: 'test',
mayscript: true
},
parameters = {
jnlp_href: 'test.jnlp'
};
deployJava.runApplet(attributes, parameters, '1.7');
}
感謝您尋找進入... 瑪麗亞
謝謝你的迴應。我會嘗試。有什麼可能嗎? – Grace 2013-04-08 14:25:49