I know this is not the correct place to post this. But I did not find a suitable section for this so I posted hear.
I want to find the javascript API We can find the java API (all the class objects variables methods we can use in java) in sun web site. Likewise I want to know the where I can find an javascript API
Thank You
Sameera
Ernest Friedman-Hill
author and iconoclast
Marshal
I use this most of the time to find what I am looking for in the Javascript API, its quite helpful, btw what exactly are you looking for? [ February 23, 2006: Message edited by: Liyaquat Ali ]
Yes, I know, we all would love somethings similar2the Java API pages
But life is cruel, we all have2make do with what we have... the link I posted is what I always use, I have not found anything better and now I M used to it so its not a problem.
U can mayB try some online book or ebokk for javascript but that wouldn't be in a jav api form either.
So what is it that you are trying to do, let us know, sombody here might know how to get it done. [ February 23, 2006: Message edited by: Liyaquat Ali ]
Sameera Abeysinghe
Ranch Hand
Joined: Nov 15, 2004
Posts: 104
posted
0
Thank a lot
Your link is very useful. I work in a web development company so we use lot of javascripts. What we do is simply get them from sites that give free. But if there is a api we can develop our own.
One more thing can you tell me a javascript that detects JRE version on the client machine. This has to be 100% javascripts. No applets must be involved.
Thank You
Liyaquat Ali
Ranch Hand
Joined: Nov 16, 2005
Posts: 156
posted
0
To detect JRE version, Basically you need to employ two approaches for IE and NS.
In IE you need to try to instantiate a small applet (not your production applet) in order to see if browser can do it. if the browser can do it, you can make a call applet from JavaScript in order to find version of JRE (as well as a host of other things).
The code on the link Ulf mentioned wox beautifully on FireFox, but doesn't work on IE??? Any Suggestions?
Heres the code:-
<script language="JavaScript1.1">
for (i=0; i<navigator.plugins.length; i++) { document.writeln("Name: <b>"+navigator.plugins[i].name+"</b><BR>"+"Filename: "+navigator.plugins[i].filename+"<BR>"+"Description: "+navigator.plugins[i].description+"<BR>");
for (j=0; j<navigator.plugins[i].length; j++) { var mimetype = navigator.plugins[i][j]; document.writeln("MIME type "+(j+1)+": "+mimetype.type+": "+mimetype.description+"<BR>"); } document.writeln("<BR>");} </script>
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35230
7
posted
0
Interesting. I don't use IE much, so I never noticed this. But the good folks at Apple have an article on how to detect plugins in IE. The example shown there only detects a few plugin types, but it looks like it can be extended to cover Java as well.