• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

JQuery cookies?

EQnoble

Well-known member
#1
Can anyone assist me with adding cookie functions to a jquery effect? I have made quite a slick template edit that I would like to share but think it is worthless to share if I cannot save the state of the effect.
 
R

ragtek

Guest
#2
$.setCookie('foo', 'value');
$.getCookie(this.getCookieName());


You could check my ragtek sidebar toggle add-on to see it in action;)
 

EQnoble

Well-known member
#3
I actually use it and think I broke it...I was making somehting to tie into that....i can pm you a link to what I did to show you
 

EQnoble

Well-known member
#4
update: I fixed what I broke...I just needed to put your if above my include where it belonged seeing as mine is in the sidebar :)
Code:
<xen:if is="{$sidebar}">
<xen:include template="ragtek_sidebar_container" />
</xen:if>
<xen:include template="xx_js_head" />