Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Online/Offline JavaScript question

Status
Not open for further replies.

BobTheMad

Programmer
Jun 11, 1999
81
US
I have a requirement to put an online/offline status on a web-page that tells the visitors when the admin is online or not (displays an online/offline message). This can be a totally manual process on the admin's part (he executes a script or whatever), to turn this flag on/off... Is there a way that this can be done with a JavaScript applet (or any other way for that matter)?

If you could let me know about both sides of the question (the visitor side & admin side) that would be perfect.

Thanks in advance... Thought for the day: Beware of Gods who cannot laugh...
 
"a JavaScript applet" --> this doesn't exist !
java - jsp, servlet, applet - is server side and cross platform
javascript can be either server side or client side (most often it's used client side). From client side you can't "see" neither "know" what happens server side - meaning you can't detect whether the admin is logged on on not

 
Though you could set up a script that the admin uses when they log on to search the actual text in the html file and replace the online/offline block. If your using an applet this is even easier because than all you would have to do is change a param value, you could have a script that searches for the specific param name and than replace it, perhaps a boolean value. There isn't any way for it to 'detect' your presence however, as far as I know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top