Click to See Complete Forum and Search --> : Please help me with this webcheck


fkn
05-23-2003, 07:22 AM
I need to redirect users that doesnīt have JavaVM installed to a page were they can install JavaVM.
Can anybody tell me what Iīm doing wrong?

This is the script Iīm trying to use:

----------------------------------------------------------------------
<script language="javascript">

function MSjavaVM()

{
if (bMSIE)
{
var buildIncrement = getBuildIncrement();

parseInt(buildIncrement, 10);
if (buildIncrement >= 2925)
{
javaVM = "ok";
}
else
{
window.location = "installJavaVM.htm";
}

</script>
----------------------------------------------------------------------
Thanks in advance for any help!

brendandonhue
05-23-2003, 04:11 PM
<script language="javascript">
if (navigator.javaEnabled() == true)
{}
else {document.location = "http://java.sun.com"}
</script>

Charles
05-23-2003, 04:40 PM
That should be

<script type="text/javascript">
if (!navigator.javaEnabled) top.location.replace('http://java.sun.com/')
</script>

fkn
05-23-2003, 05:10 PM
Thank you Charles, but I donīt mean java enable...

You can have java enabled without having JavaVirtualMachine installed.
I need to redirect browsers that doesnīt have MSJava Virtual Machine installed to a page were they can get it.

If you help me with this one, I will owe you big time! Because I have searched the web from w3.org to Disneyland and from Microsoft and back to Disneyland without finding an answer.

brendandonhue
05-23-2003, 05:18 PM
JavaScript does not have the ability to tell if they have downloaded a program or plugin (except for some un-standard hacks).