accessing relational databases from javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mir nazim

    accessing relational databases from javascript

    hello,
    i am writing an application and need to access mysql od sqllite from
    javascript.
    is it possible to access mysql/sqllite (or any free lightweight
    relational databse) directly from javascript. any help is appreciated.
    thanks
  • Martin Honnen

    #2
    Re: accessing relational databases from javascript



    mir nazim wrote:
    [color=blue]
    > i am writing an application and need to access mysql od sqllite from
    > javascript.
    > is it possible to access mysql/sqllite (or any free lightweight
    > relational databse) directly from javascript. any help is appreciated.[/color]

    Well, if a host environment provides the objects for data base access
    then JavaScript can access the data base. MS JScript on Windows has
    new ActiveXObject(' Program.Id')
    to instantiate COM objects and there are ADODB objects for database
    access which can be instantiated in an ASP page or a Windows Script Host
    program or probably if needed even in a HTML page loaded in IE (if the
    page is loaded locally and security settings are low enough).

    However if your intention is to have an abritrary JavaScript supporting
    browser loading a HTML page from a Web server access a data base server
    elsewhere on the net then there are no ways to do that.

    --

    Martin Honnen


    Comment

    • Ike

      #3
      Re: accessing relational databases from javascript

      Use php. It;s relatively simple actually to do it in php, and it is a
      perfect complement to javascript, the latter being for clientside scripting,
      whereas php is ideal for serverside scripting. I find them to be an ideal
      fit. Variables from one, can be accessed within the other in effect.

      -Ike

      "mir nazim" <mir4uu@yahoo.c om> wrote in message
      news:425cc8d1.0 402080525.3ea94 887@posting.goo gle.com...[color=blue]
      > hello,
      > i am writing an application and need to access mysql od sqllite from
      > javascript.
      > is it possible to access mysql/sqllite (or any free lightweight
      > relational databse) directly from javascript. any help is appreciated.
      > thanks[/color]


      Comment

      Working...