Thank you. I also found a couple of other javascript approaches to alert users that their cookies are off...example:
http://jon.hedley.net/cookie-block-detection-with-javascript The approach can be used to modify the presentation layer to prevent people from starting a process that will frustrate them. On 3/18/05 1:06 PM, "David Shelley" <[EMAIL PROTECTED]> wrote: > You can trigger a request without redirecting or reloading a page, > either by targeting a hidden frame or iframe, or by appending a script > to your head tag. > > The latter is a very powerful technique that can be used to execute a > taf file in the background without refreshing the page. It can be used > for validating data, populating dropdowns or div tags, or checking for > cookies. It can even be used to provide dynamic data on a static html > page. > > For example, two files, setCookie.tml and checkCookie.tml are attached. > > setCookie.tml sets a cookie called currentTime. An onLoad handler in the > body tag triggers a javascript function that appends a new script to the > head tag. The new script src is checkCookie.tml. checkCookie.tml > populates the innerHTML of a div tag to tell you if cookies are enabled > or not. > > checkCookie.tml could do more complex tasks as well, such as changing > the action on your form tags to include a userreference, or setting user > scope variables, or even redirecting to a page that says cookies are > required. > > There are easier ways to do this, but this demonstrates a very useful > technique for calling a variable script.src. > > Dave Shelley > > -----Original Message----- > From: Stefan Gonick [mailto:[EMAIL PROTECTED] > Sent: Friday, March 18, 2005 2:32 PM > To: [email protected] > Subject: Re: Witango-Talk: Detecting the cookie-averse > > I think that you need to set the session cookie and then make another > request. You can do this by using an automatic redirect after setting > the session cookie and then checking for the value. > > Stefan > > At 02:29 PM 3/18/2005, you wrote: > > > >> On 3/18/05 11:05 AM, "Scott Cadillac" <[EMAIL PROTECTED]> wrote: >> >>> Hi Roland, >>> >>>> 1. I'm glad we're on the same page (pun intended) :-) >>> >>>> 2. It is possible to devise some trick of jumping between specific > pages >>> for a test. Following is one simple example. >> ... >>> >>> Maybe what you should do is set a cookie on all your pages (except > the >>> critical ones) that says "roland=niceguy", and for your critical >>> applications - just don't allow the app to run if the "roland" > cookie is >>> missing. >> >> ... >> >> >> If witango sets a cookie at the beginning of a request cycle, witango >> believes that cookie has been set, and later on in the cycle 'reads' > it, >> even though it hasn't been accepted by the browser. That's reasonable, > since >> in that request cycle, there isn't any conversation with the browser. >> >> Guessing there isn't a way to detect the cookie refusal, except maybe > by a >> javascript in the html that reads the cookie and if missing, gives an > alert >> or something. >> >> >> _______________________________________________________________________ > _ >> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > ===================================================== > Database WebWorks: Dynamic web sites through database integration > http://www.DatabaseWebWorks.com > > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ----------------------------------------- Roland Dumas Roberts Information Services 310 W. Bellevue Avenue San Mateo CA 94402 650-347-1373 415-412-9300 (cell) [EMAIL PROTECTED] SMS: http://new.servqual.com/html/sms.tml ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
