Results 1 to 2 of 2

Thread: Retain Font Setting

  1. #1
    Join Date
    Oct 2007
    Posts
    9

    Retain Font Setting

    On my website I have 7 pages. I have two javascript buttons which can increase or decrease the font size. I have these buttons on each page. When I move from page to page the font size is not remembered, how can I change that so when I change it on one page it will keep that setting for the next page?

  2. #2
    Join Date
    Dec 2004
    Posts
    2,788
    The web is stateless in the basic way it works. A person want to view a page and so their browser connects to the server and sends a request. The server responds by sending the page and then disconnects. There is no more contact between the two unless the user requests another page, at which time a new request is sent to the server. The server has no way of knowing that this is a continuation of the previous session without being told somehow that this is the case. There are two ways to do this, one is to set a cookie on the users machine which you can have the server check to see what their preferred setting is. The other way would be to encode the requesting URI send to the server to have that information in it, although that would probably be more difficult to accomplish the same thing.

Similar Threads

  1. Need Font Changed - $20
    By swiftmed in forum Freelancing
    Replies: 1
    Last Post: 07 Feb 2007, 11:41 AM
  2. Flash and Font Trouble
    By Streakfury in forum Graphic Design
    Replies: 1
    Last Post: 19 Aug 2006, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •