View Single Post
Old 01-08-2013, 04:31 PM   PM User | #3
Henry.
New to the CF scene

 
Join Date: Jan 2013
Location: London, UK
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Henry. is an unknown quantity at this point
Quote:
Originally Posted by AndrewGSW View Post
You haven't shown the code that changes the font-size; does it set the cookie at the same time?.
I call the funtion zoomLetter(mysize) (at the very top of the code I posted) from buttons on the page.
mysize is 1 for increase size and -1 for decrease size. It works fine on each page, but the size isn't 'remembered' when I go to another page.

Quote:
Originally Posted by AndrewGSW View Post
You aren't setting an expiry for the cookie.
That's because it's a session cookie (which I stated in the original post) which expires when the browser is closed.
I have another session cookie that's working and doesn't expire between pages. It keeps the (selectable) background colour the same between pages.
I didn't include the code for that as I thought it would confuse matters.
Henry. is offline   Reply With Quote