Hello, i don't know if i am the right section of the forum the page this topic. Anyways, I'm using Java7u11 but when i open my webpage file and i call the applet using Javascript it only display a blank page. I already tried what i search through out the internet, Re-install Java , lower down the security of IE9 , Enable ActiveX Filter, and so on. I tried it in Google Chrome and it works fine. But I need it to run in IE9. Any help would be appreciated.
<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">';
}
function getImage() {
obj = document.getElementById('paste-image');
postTo = "Http://SERVERNAME/PATH/TO/shoot.php"; // Change this to your URL
image = obj.getClipboardImageURL(postTo); // Also got error here "Object doesn't support this property or method."
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>