|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Problem in accessing MSAccess Database using Javascript
i am not able to retrive the data from the web server using the below mentioned javascript. I got the web server path by using the asp function Server.MapPath() and i am able to retrive the data using asp. but i have to use javascript so pls help me and tell me where i am wrong..........
function GetDBMake() { var objCN = new ActiveXObject("ADODB.Connection"); var objRS = new ActiveXObject("ADODB.Recordset"); var strRet = ""; objCN.open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Inetpub\mebco.com\mebco.mdb;Persist Security Info=False") objRS.open("Select distinct make From Battery_Names", objCN, 0, 1) while(!objRS.EOF) { strRet = strRet + ';' + objRS.Fields("make"); objRS.MoveNext() } objRS.close objCN.close return strRet; } !!! kumar !!! |
|
#2
|
||||
|
||||
|
I hope this is a school project, because Javascript and Database sounds like a huge security hole.
Are you getting any type of useful error, or anything that could help us track it down?
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter! DevArticles Forum Moderator "The net is a waste of time, and that's exactly what's right about it." -- William Gibson |
|
#3
|
|||
|
|||
|
no i didn't get any error msgs from the web server. but the code is working perfectly in the LAN. Why i am using javascript is, for getting remote scripting support. And i changed the code to vbscript there the recordset count displaying -1 values. can u help me pls
thank u. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Problem in accessing MSAccess Database using Javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|