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, [email protected]
<[email protected]> 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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to