Avatar of 123dec45
123dec45
 asked on

Coloured Boxes

Hi all
I want to create a web page that shows traffic light type boxes depending on a trigger in an input file. In a directory on the server will be 1 file per process. The page needs to create a box that is coloured dependant on a string if found in the file.

so directory would look like \status\  .In status we would have    \status\processa.txt status\processb.txt  processa.txt and \status\processb.txt would contain on line 1 the name of the process, line 2 the time of the update line 3 the status, running, failed, completed, dependant upon the status, I then want to colour the box.
Where do i start ?
Thanks
Gary
Adobe DreamweaverWeb Applications

Avatar of undefined
Last Comment
123dec45

8/22/2022 - Mon
zhuba

If you're using a server-side script like php or asp then you can open these files directly and check them at parse-time.

Do you have php or asp on your server?
123dec45

ASKER
nope, no php nor asp any other way ?
Thanks
Gary
zhuba

It is possible to access files with javascript using AJAX and then read the contents on the clients machine.

Check out the following links for how to use AJAX:

http://www.w3schools.com/Ajax/Default.Asp
http://en.wikipedia.org/wiki/AJAX
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Ali Kayahan

You have to use a scripting language to achieve this,JavaScript or Php or Asp
123dec45

ASKER
How about doing it with Java then ?
Ali Kayahan

Java and Javascript ara different languages as we all know,which one is easier for you to use ?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
123dec45

ASKER
Sorry, typo  Javascript my preferred.
ASKER CERTIFIED SOLUTION
zhuba

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
123dec45

ASKER
sorry been away for some time, and this has just come back on the Radar.
Nope thats not going to work. You mentioned earlier about using ASP, would that be easier ?
Cheers
123dec45

ASKER
Thanks Very much, sorry its taken so long to close this, usual thing spend the whole month firefighting problems.
regards
gary
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes