Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't see drop down menu in Java

Status
Not open for further replies.

egmweb

Programmer
Mar 19, 2004
147
EU
Hello all.

I've made a drop down menu in Java to be inserted in a Website. At windows XP it works perfectly, I can see the website perfectly, but at windows 2000 it doesn't works because it browser doesn't have the java machine installed.

Please how can I make a Script to verify if the java machine is already installed on the browser and if it not installed, then appears a dialog box asking for install the java machine to see the drop down menu?...

Thanks you
 
You can do it in javascript :

Code:
<html>
<head>
<script language="JavaScript">
	var isJavaAvailable = navigator.javaEnabled();
	alert(isJavaAvailable);
</script>
</head>
<body>
the rest of my page
</body>
</html>

Taken from
--------------------------------------------------
Free Database Connection Pooling Software
 
Hello sedj,

I will do that, but if the browser doesn't have the java machin already installed?

How can I drop a dialog box to ask the user to install and run the java machine?

Thanks you
 
Maybe something in the javascript section like :

if (isJavaAvailable != true) {
document.location = 'downloadJava.html';
}

where downloadJava.html contains some text saying "you don't have a Java plugin, please download it from to view this site", or some similar message ....

--------------------------------------------------
Free Database Connection Pooling Software
 
Thanks you Sedj.. I will try it...

Thanks you.. and one last question... do you havo knowledbase of javaScript?

because I have a title in this section, but nobody can answer me...

Thanks you agaain,

Eduard
 
Sorry, I don't quite understand your question ...

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top