Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. What should I do to connect JavaScript to database

What should I do to connect JavaScript to database

Scheduled Pinned Locked Moved Database
javascripthtmldatabasehelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    blitz2bleach
    wrote on last edited by
    #1

    I am currently doing some project and I think Im going crazy. I am developing an online video rental using JavaScript, and actually has a database on it..Can I ask aside from ASP..what should I used to make a connection string,I am using a MS Access 2007 as database?where should I put it on my HTML/JavaScript file if you can give me a hint about making a connection string? it is possible to use database with pure HTML/Javascript file aside from asp?pls help me :( thanks!

    J L 2 Replies Last reply
    0
    • B blitz2bleach

      I am currently doing some project and I think Im going crazy. I am developing an online video rental using JavaScript, and actually has a database on it..Can I ask aside from ASP..what should I used to make a connection string,I am using a MS Access 2007 as database?where should I put it on my HTML/JavaScript file if you can give me a hint about making a connection string? it is possible to use database with pure HTML/Javascript file aside from asp?pls help me :( thanks!

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      No, javascript by itself should not be used to connect to the database. Generally, javascript will make an ajax request to ASP which will connect to the DB and return results to javascript.

      1 Reply Last reply
      0
      • B blitz2bleach

        I am currently doing some project and I think Im going crazy. I am developing an online video rental using JavaScript, and actually has a database on it..Can I ask aside from ASP..what should I used to make a connection string,I am using a MS Access 2007 as database?where should I put it on my HTML/JavaScript file if you can give me a hint about making a connection string? it is possible to use database with pure HTML/Javascript file aside from asp?pls help me :( thanks!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        One can easily view the source of the HTML pages, and that would expose the connectionstring to the outside world. Hence, it'd be better safer to use a server-side language to access the database.

        I are Troll :suss:

        B 1 Reply Last reply
        0
        • L Lost User

          One can easily view the source of the HTML pages, and that would expose the connectionstring to the outside world. Hence, it'd be better safer to use a server-side language to access the database.

          I are Troll :suss:

          B Offline
          B Offline
          blitz2bleach
          wrote on last edited by
          #4

          I see so there is no other way to connect it is by ASP/ASP.NET/ADO/AJAX?am I right?so if I used some of this language my file extension should be .asp..instead of .html or .js?if I used ADO?

          L 1 Reply Last reply
          0
          • B blitz2bleach

            I see so there is no other way to connect it is by ASP/ASP.NET/ADO/AJAX?am I right?so if I used some of this language my file extension should be .asp..instead of .html or .js?if I used ADO?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            ASP is the older serverside scriptlanguage ASP.NET is the newer version ADO is what's used to talk to the database AJAX is used to have the client call some serverside function Do you have a webserver that's capable of running ASP.NET pages? You can verify by executing a small test-aspx :)

            I are Troll :suss:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups