Re: Possible Cookie Usage?



In article <MPG.2280fcf7ce6f084c9896fb@xxxxxxxxxxxx>,
mrc2323@xxxxxxx (Mike Copeland) wrote:

If this is possible, I don't quite know how to implement it. I
assume it's a simple JavaScript cookie reading activity, but I don't
know how to get that staff person's activity to write the file and where
it'd be stored. Any thoughts? TIA

If I read the problem right, the easiest solution is a simple timestamp.
Give the person in the mail room access to a trivial CGI (could be just
touching a file) that refreshes a master value, and that value is
supplied with the web interface. You can certainly add a JavaScript
cookie to compare the supplied value with the last stored value and add
some fancy notification if there's a change. It is slightly more tricky
if you want to give notification for individual mailboxes, but the basic
approach is the same.

Yes, that could do the job. However, how does the timestamp/flag get
"transmitted" to the Web site interface? That is, I could write a small
application that "touches" a file, but where does such a file reside to
have it accessible by my HTML/Javascript/CSS code that resides on the
server host? How would my code know where that file is, and how does it
interrogate it to find its timestamp?

I have no way of knowing how your corporate intranet functions. You'd
use PHP or Perl or Ruby or whatever else is already in place to handle
the server side processing. If you're not the person in control of
that, you need to talk to the person who is. That is beyond the scope
of JavaScript, though. All that JavaScript can accomplish is to put a
more friendly interface on the web page (or possibly a widget/gadget)
that relays that information to the user.

--
My personal UDP list: 127.0.0.1, 4ax.com, buzzardnews.com, googlegroups.com,
heapnode.com, localhost, ntli.net, teranews.com, vif.com, x-privat.org
.



Relevant Pages

  • Re: Possible Cookie Usage?
    ... assume it's a simple JavaScript cookie reading activity, ... supplied with the web interface. ... Desk that now occur. ...
    (comp.lang.javascript)
  • Re: UI toolkits for Python
    ... nowadays can offer a rich graphical interface, it can be quite difficult to manage state maintenance between the two components (web server, web client) in the system. ... As has already been said, with the adoption of standards like CSS2, it's even possible to make such stuff run across multiple browser platforms (at the moment, though, just try writing an interface that makes table rows appear and disappear in a cross-browser fashion: you'll find the stylesheet techniques you need to use for Mozilla and IE are very different). ... But this doesn't help you at all if you are trying to interface to Python logic. ... already a HTML and JavaScript driven server platform and know about problems with the back-button and sessions. ...
    (comp.lang.python)
  • Re: How to assign variable value as the object property name?
    ... >> an object implementing the NodeList interface. ... HTMLColleciton implements all of the NodeList interface). ... In javascript all variables are in reality properties of objects. ... assignment operation assigns a value to a property. ...
    (comp.lang.javascript)
  • Re: Shall I implement this in javascript?
    ... to access some web services. ... IE Control expose? ... javascript in a browser has no file system access, ... If the COM interface access of the IE Control let's ...
    (comp.lang.javascript)
  • Re: JavaScript as AJAX response (RPC)
    ... Some servers return JavaScript as the response to an AJAX request. ... each type of client. ... We are only starting to see RIAs calling all kind of web services, etc...) to enhance the user experience. ... don't add breaking changes to your interface; make the interface easy to use; make the interface as universal as possible. ...
    (comp.lang.javascript)