Database access from Javascript?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mikhail Teterin

    Database access from Javascript?

    Hello!

    A major application we are using allows extending itself with custom
    JavaScript. They embed Rhino implementation of JS (written in Java).

    There is no apparent built-in way to access databases (Sybase, MS SQL) in
    the language itself -- are there extensions, that we can load dynamically
    into the JavaScript interpreter embedded into the application?

    Thanks!

    -mi
  • Martin Honnen

    #2
    Re: Database access from Javascript?

    Mikhail Teterin wrote:
    A major application we are using allows extending itself with custom
    JavaScript. They embed Rhino implementation of JS (written in Java).
    >
    There is no apparent built-in way to access databases (Sybase, MS SQL) in
    the language itself -- are there extensions, that we can load dynamically
    into the JavaScript interpreter embedded into the application?
    Rhino supports LiveConnect meaning JavaScript can create Java objects so
    you could try to use the Java classes for data base access from
    JavaScript, see
    <URL:http://developer.mozil la.org/en/docs/Core_JavaScript _1.5_Guide:Live Connect_Overvie w:JavaScript_to _Java_Communica tion>


    --

    Martin Honnen

    Comment

    Working...