Mar 4, 2002 #1 jerjim Programmer Jan 4, 2001 85 0 0 PH Can anyone point me to a website which gives examples of active server pages and ADO using JavaScript? Thanks in advance.
Can anyone point me to a website which gives examples of active server pages and ADO using JavaScript? Thanks in advance.
Mar 4, 2002 #2 Jaydakissx22 Programmer Feb 16, 2002 7 0 0 US con = new ActiveXObject("adodb.connection" rst = new ActiveXObject("adodb.recordset" strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\mp3 data\\mp3database.mdb;"; strSql = "SELECT * FROM mp3dataTables" con.Open(strConn); rst.ActiveConnection = con; rst.CursorType = 3; rst.LockType = 3; rst.Source = strSql; rst.Open; rst.MoveFirst; //alert("recordset opened" //alert("Records in table : " + rst.recordCount); for(i=0; i<rst.recordCount; i++) { oNewOption = new Option(); oNewOption.text = rst("names" oNewOption.value = rst("folders" document.myform.searchFolder.add(oNewOption, 1); rst.MoveNext; thats for local db access try msdn. Upvote 0 Downvote
con = new ActiveXObject("adodb.connection" rst = new ActiveXObject("adodb.recordset" strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\mp3 data\\mp3database.mdb;"; strSql = "SELECT * FROM mp3dataTables" con.Open(strConn); rst.ActiveConnection = con; rst.CursorType = 3; rst.LockType = 3; rst.Source = strSql; rst.Open; rst.MoveFirst; //alert("recordset opened" //alert("Records in table : " + rst.recordCount); for(i=0; i<rst.recordCount; i++) { oNewOption = new Option(); oNewOption.text = rst("names" oNewOption.value = rst("folders" document.myform.searchFolder.add(oNewOption, 1); rst.MoveNext; thats for local db access try msdn.