Re: Possible Cookie Usage?
- From: Dr J R Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 28 Apr 2008 21:35:20 +0100
In comp.lang.javascript message <MPG.227fb1e54cc93cda9896fa@xxxxxxxxxxxx
, Mon, 28 Apr 2008 10:06:05, Mike Copeland <mrc2323@xxxxxxx> posted:
In a Web site I'm building, I want to provide an ability to set a
"flag" message that users can see when they log on. Specifically, I
want the "flag" to show when the (snail) mail for our building has been
delivered, so people can come to the mailboxes to pick up their incoming
mail.
The problem is that I want to have a staff person "set the flag" in
some way. This person won't be technically savvy, nor would I want to
give them security permissions that their mistake could damage the site.
I also can't do the flag setting myself, as I won't always be available
at the time it's needed.
You could maybe use a VBScript or JavaScript program running on their
machine under WSH, with buttons for "Mail has come" and "No it hasn't",
each of which invokes an FTP to upload an Include file which contains
either
var MailHere = true
or var MailHere = false
so that when they load a page it is customised by that.
Even better, you could give the staff person a compiled program that had
the FTP built in (I suppose you're defending against incompetence or
meddling, and not against skilled malice).
For a single daily delivery, code can clear the state at midnight; for
multiple deliveries it might be better to send the day's set of actual
delivery times.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
.
- References:
- Possible Cookie Usage?
- From: Mike Copeland
- Possible Cookie Usage?
- Prev by Date: Same Origin Policy -- clarifications?
- Next by Date: FAQ Topic - How do I close a window and why does it not work on the first one? (2008-04-29)
- Previous by thread: Possible Cookie Usage?
- Next by thread: Re: Possible Cookie Usage?
- Index(es):