Click here to Skip to main content
15,895,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
All my scenario is I have one html page in that one textbox when I enter data and press enter button, all the data related to the textbox data should display in the html page one by one dynamically.(I am able to connect my access database with HTML page).

So my question is how can I render data one by one dynamically on the HTML page ?



Thanks & Regards
Indrajit
Posted
Comments
baliram bhande 26-Jul-14 4:13am    
first u tried then ask specific question

Since you say you can get the data from your Access database, what you need to know how to do is update (or add) page content.

Method 1: DOM
Study the DOM http://www.w3schools.com/js/js_htmldom.asp[^], which will also require you learn javaScript;

Basically, you create your controls with id='something' so that it can easily be specified. Then, in a javaScript, you'd use:

JavaScript
<script type="text/javascript>
  function OnSomeEvent_UpdateStuff() {
  document.getElementById("something").value="the new text"
  //  you can have many of these updates for many controls<br mode="hold" />  
} 


Another possibility would be to use AJAX and build entire sections of the page with the newly updated text. Referencing to AJAX are also available on the same site as the above link;


These are just a couple of routes to follow; It really depends upon what other languages you know (javaScript, php, etc.) - or - it points you in the direct of the languages you need to learn.

 
Share this answer
 
v3
HTML cannot connect to database, you will need the help of server-side script, like php or asp.net code behind.
Typically, you html form will pass the data (e.g. textbox value) to a server-side script who then queries the database to retrieve records that match the the value, this script will then render these records in HTML format and send over to your browser for display.
Read this: php_forms[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900