简体   繁体   English

对象不支持此属性或方法 -- 在 IE9 中调用 Applet

[英]Object doesn't support this property or method -- Calling an Applet in IE9

cmd > java -version
Java Version : "1.7.0_11" (Updated)
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)

browsers = IE7,IE8,IE9浏览器 = IE7、IE8、IE9

(It works perfectly in Google Chrome & FF, But I need it to implement using Internet Explorer as what the company wants.) (它在 Google Chrome 和 FF 中完美运行,但我需要它使用 Internet Explorer 来实现公司想要的。)

I'm currently working on some stuff, but I don't see a way to fix my problem on:我目前正在做一些事情,但我没有找到解决问题的方法:

Object doesn't support this property or method

I've already search over the internet, and tried every possible way to fix it, like lowering IE security, custom level of security ,reinstall Java, etc. but still no luck.我已经在互联网上搜索过,并尝试了所有可能的方法来修复它,比如降低 IE 安全性、自定义安全级别、重新安装 Java 等,但仍然没有运气。

    <html>
        <head>
            <title>Clipboard image demo</title>

            <script type="text/javascript">
                function loadApplet() {
                    // Deferred load to display text first
                    document.getElementById("applet").innerHTML = '<object id="paste-image" classid="java:PasteImageApplet.class" type="application/x-java-applet" archive="tst.jar" width="1" height="1" ></object>';
                }
                function getImage() {
                    obj = document.getElementById('paste-image');
                    postTo = "Http://Path/To/File/shoot.php"; // Change this to your URL

                    image = obj.getClipboardImageURL(postTo);

                    if (image) {
                        url = "shots/" + image;
                        document.getElementById("target").src = url;
                        document.getElementById("url").value = document.getElementById("target").src; // to get full path, hack, I know ;)
                        document.getElementById("container").style.display = "";
                    }
                }
            </script>
            <body onLoad="loadApplet();">
                <p>
                    <div id="applet"></div>
                    <input type="button" value="Paste it!" onClick="getImage();">
                </p>
                <div id="container" style="display: none;">
                    <input type="text" id="url" style="width: 700px;"><br />
                    <iframe id="target" width="700" height="400"></iframe>
                </div>
        </body>
    </html>

Any help would be greatly appreciated.任何帮助将不胜感激。

When I have this error, I suggest checking to see if the java plug in is enabled on the browser.当我遇到这个错误时,我建议检查浏览器是否启用了 java 插件。 Sometimes, I have to toggle this switch in the java console.有时,我必须在 Java 控制台中切换此开关。 Turn it off and then on again.将其关闭,然后再打开。

I was able to resolve this issue by going into the Java Control Panel and selecting the advanced tab.我可以通过进入 Java 控制面板并选择高级选项卡来解决此问题。 From here I basically allowed everything and made sure "do not check" was marked.从这里我基本上允许一切并确保标记了“不检查”。 I'm sick and tired of the newer versions of Java.我厌倦了 Java 的新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在IE11中获取错误“对象不支持属性或方法&#39;attachEvent&#39;”但在IE8,IE9,IE10中工作 - Getting Error “Object doesn't support property or method 'attachEvent'” in IE11 but work in IE8, IE9, IE10 当我尝试从applet调用方法时,出现“对象不支持此属性或方法” - “Object doesn't support this property or method” occurs, when I try to call method from applet 对象不支持此方法或属性错误 - Object doesn't support this method or property error JavaScriptException:(TypeError):Object不支持此属性或方法 - JavaScriptException: (TypeError): Object doesn't support this property or method Add(GObject obj)方法不会在applet上绘制对象 - Add(GObject obj) method doesn't draw the object on the applet 为什么此小程序无法在IE上加载? - Why this applet doesn't load on IE? Java Applet在IE8上不起作用 - Java applet doesn't works on IE8 在IE9和IE9 Platform Preview中,我不再能够从Java Applet调用Javascript方法 - In IE9 and IE9 Platform Preview, I am no longer able to call a Javascript method from my Java Applet Javascript在IE9中找不到Applet - Javascript does not find Applet in IE9 Applet Java无法在IE9上运行,但在Firefox上运行良好 - Applet Java not working on IE9 but fine on Firefox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM