www.webdeveloper.com
Results 1 to 3 of 3

Thread: How can I write a cookie to remember the size of a scalable object?

Hybrid View

  1. #1
    Join Date
    Dec 2013
    Posts
    2

    How can I write a cookie to remember the size of a scalable object?

    I've got a code like this here: http://jsfiddle.net/wLMp5/6/ that allows a user to set the height of a certain object by clicking. The height is set based on the user's y mouse coordinate and scroll position. There are also a couple of objects with top margins set based on these things. I need a cookie that will remember the last sizes of these things so that they are like that when the user returns to the page.

    Nothing I've tried so far has come close to working, so I don't think posting any of it would be particularly helpful as it mostly just amounts to fiddling around with bits of code I don't remotely understand. I tried something using the Jquery cookie plugin, but the web host I'm using doesn't like the plugin code and freezes up everytime I try to use it, besides which I couldn't get the thing to work in the first place. I'd rather use something that doesn't use Jquery if it's possible to do this without it. The simpler, the better. If it can't be done without Jquery, then hopefully I can get something with Jquery to work without my webhost going crazy.

    Sorry if it's not much of a starting point. I don't really understand cookies, no matter how much I try to find information about them.

  2. #2
    Join Date
    Dec 2013
    Posts
    2
    I found a solution here: http://w3schools.invisionzone.com/in...howtopic=49242 if anyone's interested.

  3. #3
    Join Date
    Oct 2013
    Posts
    45
    i aslo face the same situation if anybody knows please share with us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles