database connection with javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priyanka1915
    New Member
    • Nov 2007
    • 32

    database connection with javascript

    Can someone tell me how to connect database like MS Access to javascript


    thanks
  • Jezternz
    New Member
    • Jan 2008
    • 145

    #2
    I was under the impression that it wasnt possible. I mean being that javascript is clientside. Wouldnt it be kinda pointless? as the client would have to have he database username and password.
    If it is possible Id like to know how.

    Comment

    • aswath
      New Member
      • Mar 2008
      • 18

      #3
      Originally posted by Jezternz
      I was under the impression that it wasnt possible. I mean being that javascript is clientside. Wouldnt it be kinda pointless? as the client would have to have he database username and password.
      If it is possible Id like to know how.

      i think u can use ajax.. doing so u can connect to ms access(or anyother db)..
      may i know why u want to connect to database using javascript. any specific reason....
      regards

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by priyanka1915
        Can someone tell me how to connect database like MS Access to javascript


        thanks
        You can't. Javascript runs on the client side.

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5390

          #5
          just a note: in case you need this for a strict IE usage and a defined client environment (like an intranet) you may use IE's JScript/ActiveX capabilities to achieve that ... search the forum ... there are multiple answers to that question already ...

          kind regards

          Comment

          • aswath
            New Member
            • Mar 2008
            • 18

            #6
            Originally posted by r035198x
            You can't. Javascript runs on the client side.
            hi r035198x,
            correct me if am worng... ajax uses javascript... thats y i told we can use ajax.
            regards

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by aswath
              hi r035198x,
              correct me if am worng... ajax uses javascript... thats y i told we can use ajax.
              regards
              AJAX stands for Asynchronous JavaScript and XML (see it's wiki page)
              AJAX does not connect to databases. You need some serverside script that will give back results to your AJAX fuction calls.
              AJAX merely fools the user into believeing that data is being retrieved from the database without the page being submitted.

              Comment

              Working...