vijayrajesh98
11-12-2008, 02:35 AM
Hi All,
I have a javascript file thru which I write some text on the webpage - something using the below to display on the page.
var t = document.getElementById('foo');
var tr = t.appendChild(document.createElement('tr'));
tr.appendChild(document.createElement('td')).innerHTML = "NYY";
tr.appendChild(document.createElement('td')).innerHTML = win;
tr.appendChild(document.createElement('td')).innerHTML = loss;
how ever I would need to write the above on a file on a txt file server side. The txt file will be
NYY 10 3
I have completed all the programming in javascript, but was not too sure how to use the write statement so that above when written on the page, is also written on a file in my webpage. Any code insights will be very very useful as I am working on a deadline.
Thanks for your time and help in advance!!!
I have a javascript file thru which I write some text on the webpage - something using the below to display on the page.
var t = document.getElementById('foo');
var tr = t.appendChild(document.createElement('tr'));
tr.appendChild(document.createElement('td')).innerHTML = "NYY";
tr.appendChild(document.createElement('td')).innerHTML = win;
tr.appendChild(document.createElement('td')).innerHTML = loss;
how ever I would need to write the above on a file on a txt file server side. The txt file will be
NYY 10 3
I have completed all the programming in javascript, but was not too sure how to use the write statement so that above when written on the page, is also written on a file in my webpage. Any code insights will be very very useful as I am working on a deadline.
Thanks for your time and help in advance!!!