bsxiong
12-09-2008, 04:44 PM
is there a way for me to use javascript to dynamically update the content of a txt file onto the page?
for example:
i have ' dataBase.txt'. Within dataBase.txt, i have a value 50. I'm writing a "write to file" from a PHP file that puts a values in dataBase.txt whenever i want.
I want to have a page with a text box that the user will see it change accordinginly to the value within dataBase.txt. So when the value changed to 20, then the textbox should be 20....etc.... without having to refresh the page or press any button at all. it just change automatically.
any possible way?
for example:
i have ' dataBase.txt'. Within dataBase.txt, i have a value 50. I'm writing a "write to file" from a PHP file that puts a values in dataBase.txt whenever i want.
I want to have a page with a text box that the user will see it change accordinginly to the value within dataBase.txt. So when the value changed to 20, then the textbox should be 20....etc.... without having to refresh the page or press any button at all. it just change automatically.
any possible way?