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
(It works perfectly in Google Chrome & FF, But I need it to implement using Internet Explorer as what the company wants.)
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.
<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.