[thelist] Cookie question

Brian Cummiskey brian at hondaswap.com
Wed Jun 6 12:43:25 CDT 2007


Jeremy Weiss wrote:
> By chance, is there another way to accomplish this that I'm overlooking?
>   
The obvious answer is to re-do the site using an include instead of frames.

otherwise, you could put a code block in the main body frame thats 
checks to see if its the parent frame, and if so, to set the cookie.

something like this in the main viewframe.

if (parent.content.frame) {
// no need to set cookie, we are framed
}
else
{
//paste tracking code here
}


of course, this relies on javascript, so there's another pitfall.   but 
its probably 98% liekly to work and 98% comission is better than 0%  :)




More information about the thelist mailing list