Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Feb 2007
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript core api?

    Hi, I am looking for a JavaScript core api. But I cant find one.

    Like how can I know what methods the Document, screen, Date, Math or what not objects have?

    Is there an API out there which is browser independent that shows all core objects and methods?

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    If you would have looked at the sticky threads in this forum, you would have seen this: http://codingforums.com/showthread.php?t=17254

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New Coder
    Join Date
    Feb 2007
    Posts
    70
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually I did look at that one, but there were so many different ones there. I thought maybe JavaScript had basic similarities that had a general API like the Java one for instance.

    But thanks.

  • #4
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,335
    Thanks
    11
    Thanked 588 Times in 569 Posts
    w3schools has an ok javascript reference.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    Well, it's complicated. First of all, some things are JavaScript Core (like the Math and Date objects) and some things are host (i.e. browser) (like Document, screen).

    Second, the things that are part of the host are a hodgepodge of different specifications. There's the W3C DOM1-3 which consists of many modules, there's the Netscape client API (those which also got implemented by ie are often called DOM0), there's the non-standardised things all browsers have, and there's the browser specific things.


    There's some tables for this over at Wikipedia:
    - ECMAScript/JavaScript <uri:http://en.wikipedia.org/wiki/Compari...8ECMAScript%29>
    - DOM <uri:http://en.wikipedia.org/wiki/Compari...ines_%28DOM%29>

    Then you should check out webdevout: <uri:http://www.webdevout.net/>



    If you really need it, you can find a reference of sorts at <uri:http://javascriptkit.com/jsref/index.shtml>.

    A better idea might be to have bookmarks for the Mozilla JavaScript 1.5 Core Reference and Guide and the W3C DOM specifications.

    That only leaves out the Browser host stuff. This stuff is browser specific, so I can't really give you a single link. The place to look when if comes to Mozilla is the Gecko DOM Reference which also contains browser specific host object documentation.

    For IE specifically, you can find all data you need at MSDN > MSDN Library >
    Web Development > HTML and CSS > HTML and DHTML Reference
    (Note: MSDN content frequently move around and changes URIs. You're better off using Google to find stuff than actually keeping the URL bookmarked.)

    For Opera and Safari, their documentation is more in the form of support tables than actual interface descriptions. However, they mostly follow Mozilla.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #6
    Regular Coder
    Join Date
    Jun 2007
    Location
    USA
    Posts
    527
    Thanks
    26
    Thanked 74 Times in 72 Posts
    I agree with liorean. MDC is the best reference guide I have come across. Bookmark it and/or use google searches of the like: "mdc abc" or "mdc abc js" if it does not show up on the first result page.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •