This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript API" Watch "Javascript API" New topic
Author

Javascript API

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Hi all,

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

Joined: Jul 08, 2003
Posts: 24183
    
  34

Originally posted by Sameera Abeysinghe:

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.


How about the HTML and JavaScript forum? I'll move this there for you.


[Jess in Action][AskingGoodQuestions]
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
Hi,

Try http://www.devguru.com/technologies/javascript/

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 ]

Excuse me while I kiss the sky (Jimi Hendrix)
Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Some thing similar to this

http://java.sun.com/j2se/1.5.0/docs/api/

A javascrpt API
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
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
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
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).

Use this link:-

http://forum.java.sun.com/thread.jspa?threadID=168544&messageID=613030
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
The hint on this thread may give you enough information without using Java.


Ping & DNS - my free Android networking tools app
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
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: 41155
    
  45
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.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
All the documentation links you could need: http://www.codingforums.com/showthread.php?t=17254

Eric
Liyaquat Ali
Ranch Hand

Joined: Nov 16, 2005
Posts: 156
Thanx Ulf n Eric,

I'll check out the links and let U know if it wox.
 
wood burning stoves
 
subject: Javascript API
 
Similar Threads
find location of google maps by giving address
Official JavaScript website for object reference
purpose of javascript code in validator-rules.xml ?
Javascript API
How to find what are the implicit functions/methods in java script