View Single Post
Old 03-14-2013, 01:55 AM   PM User | #9
cally0611
New Coder

 
Join Date: Mar 2013
Posts: 16
Thanks: 5
Thanked 0 Times in 0 Posts
cally0611 is an unknown quantity at this point
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.
cally0611 is offline   Reply With Quote