Results 1 to 3 of 3

Thread: JScript & ASP

  1. #1

    Thread Starter
    Member Canibus's Avatar
    Join Date
    Jun 2003
    Location
    South Africa
    Posts
    61

    JScript & ASP

    I jus wanna know >> "Is it possible to connect 2 the DB with JS & if so HOW? & also how to create the objects for recordsets,commands & connection".
    Canibus Signs out!!

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    Yes you can connect to databases with JScript. Similar syntax as VBScript as these object are ASP not specific VBScript.

    i.e.
    VBScript:
    Set objConn = Server.CreateObject("ADODB.Recordset");

    JScript:
    var objConn
    objConn = Server.CreateObject("ADODB.Recordset");

    Do a google search for what you want remembering to add JScript and ASP and you should get loads of results.

  3. #3
    Addicted Member
    Join Date
    Sep 2002
    Location
    Durham, NC, US
    Posts
    218
    Shouldn't this be in the ASP (server-side) forum, and not the JavaScript (client-side) forum.

    Oh... wait... you think JScript and JavaScript are the same thing? Oh, that's so funny.

    Sorry, I didn't mean to pick.
    Travis, Kung Foo Journeyman

    Web Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.5 Guide and Reference
    Perl: Documentation, Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    OSS: Mozilla, MySQL (Manual)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width