Re: [Zope] Javascript detection

2008-06-16 Thread Tim Nash
here is the code:

put this at the top of your dtml


  location.href = "redirected_javascript_enabled_page.dtml";


and create redirected_javascript_enabled_page.dtml

On 6/16/08, Andreas Jung <[EMAIL PROTECTED]> wrote:
>
>
> --On 16. Juni 2008 11:34:37 -0700 Arne Jensen <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> Using DTML, is there a way to detect if a user has javascript enabled in
>> their browser. We are running Zope 2.10.4-final, python 2.4.4.
>
> This has absolutely nothing to do with DTML. Javascript=client-side,
> DTML/ZPT=server-side.
>
> Andreas
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Javascript detection

2008-06-16 Thread Andreas Jung



--On 16. Juni 2008 11:34:37 -0700 Arne Jensen <[EMAIL PROTECTED]> wrote:


Hello,

Using DTML, is there a way to detect if a user has javascript enabled in
their browser. We are running Zope 2.10.4-final, python 2.4.4.


This has absolutely nothing to do with DTML. Javascript=client-side,
DTML/ZPT=server-side.

Andreas

pgphqazLygU8j.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Javascript detection

2008-06-16 Thread Jaroslav Lukesh


- Original Message - 
From: "Arne Jensen" <[EMAIL PROTECTED]>



Using DTML, is there a way to detect if a user has javascript enabled in 
their browser. We are running Zope 2.10.4-final, python 2.4.4.


Dont mix server-side processing and client-side processing!

DTML is server-side and it should generate javascript code.

Javascript is client side and here you should detect, if client has JS 
enabled or no simply by calling javascript page. Then you should set cookie 
and after visiting other pages, you know, that client is JS enabled. Or use 
XHR (buzzword ajax).


Regards, JL.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Javascript detection

2008-06-16 Thread Arne Jensen

Hello,

Using DTML, is there a way to detect if a user has javascript enabled in 
their browser. We are running Zope 2.10.4-final, python 2.4.4.


Thanks,

Arne Jensen

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )