Hi,
I got a text file ('testdetails2.txt') and my text file looks something like this:
abc123, 234 pqr,xyz "type"
bc123, 234 pqr,xyz "type"
c123, 234 pqr,xyz "type"
n23, 234 pqr,xyz "type"
aj23, 234 pqr,xyz "type"
As you notice, it has got "," aswell a blank space and "". all i wish to to do is preset the contents of the text file in a nice html table.
Please can someone help?
<html>
</head>
<script type="text/javascript">
function loadTxtFile(){
..
..
}
</script>
<body>
<div id="T1" style="border:1px solid black;width:300;padding:5"></div><br />
<button onclick="loadTxtDoc('testdetails2.txt')">Click</button>
<button onclick="loadTxtDoc('testdetails3.csv')">Click</button>
</body>
</html>