I have lots of user records similar to the following inside my main index.html page:
<tr>
<td>Angelica Ramos</td>
<td>Chief Executive Officer (CEO)</td>
<td>London</td>
<td>47</td>
<td>2009/10/09</td>
<td>$1,200,000</td>
<td>504</td>
</tr>
This is of course in a table. Now, what i want to do is make this dynamic. I cant modify the original index.html page each time a user record is updated. so my question is, how do i make html read from a file and insert the records in the file in the table in the original index.html file?
my index.html file has a code that allows you to type a user name in a search box and the record for that particular user will pop up. the preferred solution will work with this already existing code so that, after html reads from the record from the external file, an admin can still search for the user name and have the user name pop up as though it was still embedded in the original index.html file.
I tried to do this on my own, but was not successful:
<script>
$.ajax( {url:"myuserRecords.html", dataType:"text"}).done( function(data){ $('#table-responsive').html(data); });
</script>
The record did not show up when searched for through the search box.