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

JQuery cookies?

Discussion in 'XenForo Development Discussions' started by EQnoble, Feb 20, 2011.

  1. EQnoble

    EQnoble Well-Known Member

    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.
  2. ragtek

    ragtek Guest

    $.setCookie('foo', 'value');

    You could check my ragtek sidebar toggle add-on to see it in action;)
    EQnoble likes this.
  3. EQnoble

    EQnoble Well-Known Member

    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
  4. EQnoble

    EQnoble Well-Known Member

    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 :)
    <xen:if is="{$sidebar}">
    <xen:include template="ragtek_sidebar_container" />
    <xen:include template="xx_js_head" />

Share This Page