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".
Printable View
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".
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.
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.