Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java equivalent of swfobject

looking for a javascript class like swfobject to embed java and have a simple fallback if the user doesn't have java or refuses the security prompt.

thanks,

Josh

like image 570
Josh Avatar asked Jul 24 '09 16:07

Josh


2 Answers

You could build one pretty easily.

Have something like a div set up like this:

<div id="java-applet">
Message to user saying that they need Java here
</div>

Then add Java Plugin Detection (builder) to your JavaScript. Then if that returns true, then do something like:

document.getElementById("java-applet").innerHTML = "<applet>stuff here</applet>";
like image 129
kennyisaheadbanger Avatar answered Sep 21 '22 20:09

kennyisaheadbanger


appletobject may work, but I have not used it.

like image 33
Jared314 Avatar answered Sep 22 '22 20:09

Jared314