mahen23 Posted October 5, 2010 Share Posted October 5, 2010 j'ai manuellement cree un cookie: setcookie("TestCookie", "something");maintenat comment faire pour que PS lit mon cookie "testCookie" Link to comment Share on other sites More sharing options...
BVince Posted October 5, 2010 Share Posted October 5, 2010 Bonjour,dans le fichier "utils.js" de ton thème, tu as une fonction qui permet de récupérer la valeur du cookie : function GetCookie (name) { var arg=name+"="; var alen=arg.length; var clen=[removed].length; var i=0; while (i var j=i+alen; if ([removed].substring(i, j)==arg) return getCookieVal (j); i=[removed].indexOf(" ",i)+1; if (i==0) break;} return null; } donc tu peux l'utiliser en faisant : GetCookie (“TestCookie”) ; @+ Link to comment Share on other sites More sharing options...
mahen23 Posted October 5, 2010 Author Share Posted October 5, 2010 non, j'ai beau chercher dans tous les fichiers, rien..... j'utilise le theme par defaut Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now