I'm no expert, but seems like the options are:
1) initialize it every request, either from browser capability
negotiations (like $ENV{HTTP_ACCEPT}) or with some quick test run early
in the request process;
2) set it in a session that is remembered on server side;
3) set it in a cookie that is remembered on browser side.
If there's another option, I don't know what it would be.- Matt Warnock, President RidgeCrest Herbals, Inc. On Thu, 2008-05-08 at 18:41 -0400, Amiri Barksdale wrote: > I was thinking a global variable would be tied to users because that's > precisely how I create a global User object for individual user > sessions, but yeah, this js_enabled variable is not tied to sessions > or anything in the same way. > > Amiri > > > On May 8, 2008, at 6:23 PM, BenRifkah Bergsten-Buret wrote: > > > On Thu, May 8, 2008 at 3:18 PM, Amiri Barksdale > > <[EMAIL PROTECTED]> wrote: > >> I did not get this question answered. I came up with a solution, > >> but I don't > >> think it's the best: > >> > >> I put $js_enabled as a global variable in my handler.pl, and now my > >> server-side script just sets it. > > > > The problem with this solution is that it is persistent and global for > > everyone that hits your site. If I visit a page and have JavaScript > > enabled then $js_enabled will be set. If someone else comes along and > > hits your site the server will think that they have JavaScript enabled > > as well. > > > > -- Ben > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Mason-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mason-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users

