在同一页面通过Javascript函数加载Applet
我正在尝试通过 javascript 按需加载小程序。
这是我尝试过的:
function startApplet() {
document.write('<applet code="com.pwc.envoyapp.applet.SampleApplet" height=30 width=40 archive="ucfapplet.jar"></applet>');
}
问题是它在新页面中加载小程序。我需要它在同一页面上打开它,以便保留小程序生成的会话密钥。
有没有办法让小程序在同一页面上加载?
I am trying to load an applet on demand via javascript.
Here is what I've tried:
function startApplet() {
document.write('<applet code="com.pwc.envoyapp.applet.SampleApplet" height=30 width=40 archive="ucfapplet.jar"></applet>');
}
The problem is that it loads the applet in a new page. I need it to open it on the same page so that session keys generated by the applet are preserved.
Is there a way to get the applet to load on the same page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过类似的操作:
当然,您需要该元素存在,因此在 DOM 中的某个位置您将:
作为等待填充的空元素。
have you tried something like:
of course you'd need the element to exist so somewhere in your DOM you'd have:
as an empty element waiting to be populated.