Your link answer at my question "how to use $cookietool?" ... but I didn't
manage either.
This xwiki code doesn't work:
$cookietool.add("awesomeCookieName","James is awesome",1)
#set ($cookieValue = $cookietool.get("awesomeCookieName").value)
My Cookie: $cookieValue
In fact, I create succesfuly a cookie with javascript and I want get his value in velocity
code (and I didn't manage this part)
Thxs
________________________________
De : Eduard Moraru <enygma2002(a)gmail.com>
À : Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr>fr>; XWiki Users <users(a)xwiki.org>
Envoyé le : Jeudi 6 novembre 2014 0h01
Objet : Re: [xwiki-users] cookies on Xwiki 6.2.3
Hi,
Not sure I understand what the problem is exactly.
Maybe this can help:
http://www.velocitycoder.com/cookies/
Found it on a random google search.
Thanks,
Eduard
On Wed, Nov 5, 2014 at 8:25 PM, Pascal BASTIEN <pbasnews-xwiki(a)yahoo.fr> wrote:
Hello,
I try to use $cookietool without success...
(I try to get my cookie with $request too but I didn't mange either)
Any help to use it?
My need, I created some cookie with javascript + onclick and I need to get them in my
velocity code to avoid blinking during loading page (to hide some div if cookie is
present)
Thxs
Pascal B
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users