[Daniel Rusch]

| Hey all,
| 
| Is there a way from zope to check to see if a user has Javascript
| enabled????

Well, you may be able to set a cookie, with JavaScript, and then on
the next page load, check for that cookie via REQUEST..

I.e.:

On page 1, have a JavaScript command that sets a cookie (don't rembember
how, from the top of my head);  and subsequently, check for this cookie
on the next page:

        * Use JavaScript to set a cookie on a page

        * Then (optionally) refresh to a new page, and test for the cookie.

                Or just have this feature on a front page or something
                similar..

Hmm, come to think of it, there may be an easier way (presuming the user
hasn't turned images off):

Enter a tag, something like this:

<script type="text/javascript">
// <!--
document.write(
        '<img src="http://www.yourhost.com/js-test/session/cookie_session_id"'
        );
// -->
</script>

Oh, and there's the obvious (and cleaner?) way of embedding a script
tag with a refresh request, something like:

<script type="text/javascript">
// <!--
document.location = 'http://www.yourhost.com/javascript-index.html';
// -->
</script>

HTH.


-Morten

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to