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