how to connect ms access database to html webpage

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Nov 2009
Posts: 2
Reputation: navinsharma is an unknown quantity at this point 
Solved Threads: 0
navinsharma navinsharma is offline Offline
Newbie Poster
 
0
  #11
Nov 9th, 2009
plz if u get solution plz forward me too becoz i m also have same prob
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 2
Reputation: navinsharma is an unknown quantity at this point 
Solved Threads: 0
navinsharma navinsharma is offline Offline
Newbie Poster
 
0
  #12
Nov 9th, 2009
plz if u get solution plz forward me too becoz i m also have same prob
at <snip>
Last edited by nav33n; 34 Days Ago at 1:40 am. Reason: email snipped
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 348
Reputation: Troy III will become famous soon enough Troy III will become famous soon enough 
Solved Threads: 42
Troy III's Avatar
Troy III Troy III is offline Offline
Posting Whiz
 
0
  #13
Nov 9th, 2009
If you are targeting Explorer only
you can always use a super lightwieght DSO to access data
go to MSDN and search for "Data Source Object" you'll find all that you need.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 1
Reputation: sanjeev.vermas is an unknown quantity at this point 
Solved Threads: 0
sanjeev.vermas sanjeev.vermas is offline Offline
Newbie Poster

Getting data from msaccess using HTML+ java Script

 
0
  #14
34 Days Ago
Originally Posted by navinsharma View Post
plz if u get solution plz forward me too becoz i m also have same prob
hi...
now it will work
The given example program for retrieving the data from database
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. <title>Entitled Document</title>
  4. <script language="JavaScript" >
  5.  
  6. function getSubmit()
  7. {
  8.  
  9. var Firstn = names.value ;
  10.  
  11. var cn = new ActiveXObject("ADODB.Connection");
  12.  
  13. var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:/clientDB.mdb";
  14. var rs = new ActiveXObject("ADODB.Recordset");
  15.  
  16.  
  17. var SQL = "select Surname, DOB from Customers where FirstName = '" + Firstn + "'";
  18.  
  19. cn.Open(strConn);
  20. rs.Open(SQL, cn);
  21. surname.value = rs(1);
  22. DOB.value = rs(2);
  23.  
  24. rs.Close();
  25. cn.Close();
  26.  
  27.  
  28. }
  29.  
  30. </script>
  31. </head>
  32. <body>
  33.  
  34. <input type="text" name="names" />
  35. <input type="text" name="surname" />
  36. <input type="text" name="DOB" />
  37. <input type="button" value="submit" onclick="getSubmit()">
  38.  
  39. </body>
  40. </html>
Last edited by nav33n; 34 Days Ago at 1:41 am. Reason: For easy readability, wrap your code in [code] tags.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: goaway is an unknown quantity at this point 
Solved Threads: 0
goaway goaway is offline Offline
Newbie Poster
 
0
  #15
27 Days Ago
Originally Posted by lelah View Post
Just use the "Save as web page" option in the File menu.
Thanks for the help.

But I had a query, where the database connection specified here, is FOR A sql SERVER .
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = C:/clientDB.mdb";
  2. var rs = new ActiveXObject("ADODB.Recordset");

Now , do I have to configure my Access Database in someway?

Here is my HTML Code:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <head>
  2. Select STATE: <SELECT NAME="entry4">
  3. <OPTION VALUE="no1">STATE
  4. </SELECT>
  5. <form>
  6. MONDAY
  7. <input type="checkbox" />
  8. <br />
  9. TUESDAY
  10. <input type="checkbox"/>
  11. <br />
  12. WEDNESDAY
  13. <input type="checkbox"/>
  14. <br />
  15. THURSDAY
  16. <input type="checkbox"/>
  17. <br />
  18. FRIDAY
  19. <input type="checkbox"/>
  20. <br />
  21. SATURDAY
  22. <input type="checkbox"/>
  23. <br />
  24. SUNDAY
  25. <input type="checkbox"/>
  26. </form>
  27. To submit the query, press:
  28. <INPUT TYPE="submit" VALUE="Submit Query">. <P>
  29. </head>
  30. <html>
  31. <head>
  32. <h1>Accessing Data through HTML and Access</h1>
  33. </head>
  34. <body>
  35. Looking at Excel Web Components to create a DAP
  36. </body>
  37. </hmtl>

The idea is to select teh state and day

I have a ACCESS DB, which has all the details of a partuclar state and its working hours.

Need help in connecting both of them.

Thank You
Last edited by Ezzaral; 25 Days Ago at 1:17 pm. Reason: Added code tags. Please use them to format any code that you post.
Reply With Quote Quick reply to this message  
Join Date: Dec 2009
Posts: 1
Reputation: sampatkhurana is an unknown quantity at this point 
Solved Threads: 0
sampatkhurana sampatkhurana is offline Offline
Newbie Poster

Connecting to sqlserver by jdbc

 
0
  #16
16 Days Ago
Hi,
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 43624 | Replies: 15
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC