What is stopping you from doing the cookie check itself with
JavaScript which is quite capable to do that :-)

http://www.quirksmode.org/js/cookies.html
http://plugins.jquery.com/project/cookie

On Wed, Jul 7, 2010 at 11:55 AM, euan.godd...@googlemail.com
<euan.godd...@gmail.com> wrote:
> You'll need to do the test in the view and then pass the result of the
> test into the template.
>
> On Jul 7, 10:13 am, grimmus <graham.col...@gmail.com> wrote:
>> Hi,
>>
>> I need to show a javascript lightbox popup for new visitors to my
>> site.
>>
>> I presume using a cookie is the best way to achieve this. But how can
>> i check whether the cookie exists in my template, so i can call some
>> javascript code if it's a new visitor ?
>>
>> I hope i have been clear,
>>
>> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to