Hi Old Pendant
Actually, I am confused ..on using Javascript or asp.net. Its just that I have got the rest of it in javascript done. I was just thinking of adding this ajax code with the javascript.
If I do use asp.net to do it, how will I be parsing the value to the javascript that I have created.
Hi Philip M,
I have found the ajax code to read the text file, here is the code
Code:
<script language="JavaScript" type="text/javascript">
jQuery.get('Test1.txt', function (data)
{
var mycars1 = new Array(data.split('<;>'));
var i;
for (i = 0; i < mycars1.length; i++)
{
document.write(mycars1[i] + "<;>");
}
});
</script>
Is this right, thinking of how to merge it with my current javascript. How do I do that, my current javascript function is in an external file.