View Single Post
Old 01-16-2012, 07:08 PM   PM User | #3
Cozzimoto
New to the CF scene

 
Join Date: Jan 2012
Location: Dallas, Tx
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Cozzimoto is an unknown quantity at this point
Thank you for the reply.

i put your script in my webpage, but the js isnt modifying the img.src still.

what my problem is i have a .bat file to write a 1 or a 0 in a seperate txt file (server_status.txt) so the server would read online or offline. and what im trying to do with that file is use a simple script to read that file automatically and if ajax reads it as a 1 then it changes the img to a green light icon i have, and if it reads a 0 then it changes it to a red light icon.

i have learned to now put js at the end of the webpage for it to load everything before modifying it, its just im still having a lil trouble. =/
Cozzimoto is offline   Reply With Quote