Re: Calling some javascript for new visitors only

2010-07-12 Thread Horst Gutmann
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 wrote: > You'll need to do the test in the

Re: Calling some javascript for new visitors only

2010-07-07 Thread euan.godd...@googlemail.com
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 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

Calling some javascript for new visitors only

2010-07-07 Thread grimmus
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 -- Yo