Javascript cookie creation and re-use between WWB project pages

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
DavidQ
 
 
Posts: 34
Joined: Sun Nov 26, 2006 11:37 pm
Location: United Kingdom

Javascript cookie creation and re-use between WWB project pages

Post by DavidQ » Tue Mar 21, 2017 2:19 pm

I am looking for a way to handle cookies with javascript between html pages in my WWB project and wondered how others here do this?
For example, I've just been looking at the Mozilla Simple Document Cookie Framework
https://developer.mozilla.org/en-US/doc ... _framework
It looks good but I have not yet successfully got it to work.

Any comments, suggestions or examples of how you deal with cookies in your WWB projects would be much appreciated.

Thanks in advance,

David

User avatar
Pablo
 
Posts: 18998
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Javascript cookie creation and re-use between WWB project pages

Post by Pablo » Tue Mar 21, 2017 2:42 pm

Note that working with cookies in WWB does not work any different then in other web design tools. WWB generates standard HTML code.
So basically you can use the same code as in the examples you have found.

DavidQ
 
 
Posts: 34
Joined: Sun Nov 26, 2006 11:37 pm
Location: United Kingdom

Re: Javascript cookie creation and re-use between WWB project pages

Post by DavidQ » Tue Mar 21, 2017 4:27 pm

Thanks Pablo, I just got it going. I've been sitting in front of my screen for too long and neglected to upload cookies.js. No wonder it wasn't working! :)

All the Best,

David

Post Reply