Maybe you mean Javascript? HTML is structure, Idk if it can even be done...why not make it a part of your Java application?
|
Fixed.
Maybe you mean Javascript? HTML is structure, Idk if it can even be done...why not make it a part of your Java application?
html script for checking java version..?
Bash script = java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \"
Yeah, that's what I meant.
I want to create a java script on an html page that checks the java version.
So if (javaVersion == versionhere) {
display image 1
} else {
display image 2
}
I need to implement this into an html document using javascript. That's what I need help with.
Ideas?
You're going to have to make a java applet to do this.
Off the top of my head, the simplest way would be for your applet to open a different webpage in the default browser dependent on the java version.
If you really just need an image, you can display it inside the applet.
AFAIK, javascript knows nothing about third-party plugins.
Well the initial problem was that users with Jre6 can't load a compiled applet from java 7 and users with jre7 can't load a compiled applet from java 6.
So creating another applet would just defeat the purpose, wouldn't it?
Jagex checks if the java version is above version 1.6.0_10 currently and I tried converting that code to check if the version is above 1.7 but nothing after the if statement executes, when it should.
Nvm Fixed on my own.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |