writing user input to file, and concatenating multiple user input to be displayed on webpage
var fso = new ActiveXObject("Scripting.FileSystemObject");
write_id = document.getElementById('write_id').value ;
alert('The data has been written to \n' + write_id);
var s = fso.CreateTextFile(write_id, true);
this is a workable page and can be tried out for hands on feel ..... but do not forget to enable the ActiveX scripting from tools->internet options->security tab->custom level
Friday, June 22, 2007
I quoted from 'soumya sen', because I tried the code, and it works.
But, i am only able to write data from one user, and when another user inputs data, the former/prior users data gets deleted when I refresh the destination writeto page.
I want the user input to be displayed as it is inputted, over time.
So, one user inputs data, and the next user inputs data, and the next user inputs data, etc.... and all of that data gets written to the webpage destination, and I can display it in orderly fashion.
How do I make the data in the writtento destination file, sort of concatentate so that I don't lose user input data???
I would want to separate one users data from another users data, perhaps with a semicolon (;). Anyone know?
Preferably, if anyone knows, I hope it is some relatively simple modification to soumya sens code that I copied above.