connect to an SQL database using javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lintolawrance
    New Member
    • Oct 2006
    • 14

    connect to an SQL database using javascript

    hi friends,

    can any one out here help me by giving me the code to connect to an SOL database using javascript.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    you cannot do that with standard-javascript - may be there are some IE-proprietary ActiveX-objs. out there ... but besides that, you have to do that on serverside. You may consider AJAX, that makes XMLHttpRequests in the background that are called by JavaScript ... and you get a more responsive application through that ... but even with that you have to call a serverside script or service or whatever to get connected with a database ...

    kind regards

    Comment

    • lintolawrance
      New Member
      • Oct 2006
      • 14

      #3
      thanks.
      i am asking this for checking the username availibility in ASP.Net at runtime.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        Originally posted by lintolawrance
        thanks.
        i am asking this for checking the username availibility in ASP.Net at runtime.
        i see ... but you have to do the server-turnaround i mentioned ... and using ajax ... you don't need to do a pagereload for the task ... i think that is what you are after? ;)

        kind regards

        Comment

        • gayatri312
          New Member
          • Aug 2007
          • 1

          #5
          Originally posted by lintolawrance
          hi friends,

          can any one out here help me by giving me the code to connect to an SOL database using javascript.

          Hello,
          can u got ans of 'how to connect javascript to an MySQL database',
          if yes then plz send mi code of that.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5390

            #6
            Originally posted by gayatri312
            Hello,
            can u got ans of 'how to connect javascript to an MySQL database',
            if yes then plz send mi code of that.
            hi ...

            welcome to TSDN ...

            the answer is up there already ;)

            kind regards

            Comment

            Working...