Click to See Complete Forum and Search --> : how to check to see if user clicks yes to signed applet security prompt


teresahoes
12-09-2002, 12:41 PM
I have a signed applet on a page. When the page loads, it prompts the user with the trust signature/grant permissions security popup -- i have a link on the page that calls a public method of the applet to do the work. the problem is -- i have users that are trying to click on the link without first clicking on the security box to agree to the permissions. I get an error of "object does not support this method or property." i assume this is because the applet methods are not exposed until the code has been trusted. Is there any way to trap that error in javascript so i can see if they have actually clicked the security box yet or not?

thanks

sciguyryan
08-09-2003, 08:17 AM
hi,

you could try an "if" statement like this:

<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var confirm = window.prompt('Do you agree to the security applet?');
{
if (comfirm == yes)
window.location="continue";
if (confirm != yes)
window.location="go away";
}
</SCRIPT>


but, you would have to create the scripy your self as i have no details!

AdamGundry
08-09-2003, 11:18 AM
I believe you can test if an object's method/property exists like this:

if (window.someproperty) {
// Someproperty exists.
} else {
// Someproperty does not exist or is false.
}

Adam