Jump to content

draggables saving state cookie behaviour


Minklet

Recommended Posts

Please have a look at http://subverb.net

 

 

I have edited a inettuts script that mimics the igoogle interface and allows you to save the state to a cookie. ON my localhost it worked fine and indeed it works to a point on my new host...however it loads the original or default layout and colours before reverting to the cookie values. Like there is a lag between it loading the page and the cookie.

 

 

Can anyone tell me why this is? It's really bizarre as I was under the impression that it checked the cookie values before it did anything, so should get as far as the default layout anyway.

Link to comment
Share on other sites

By the looks of it you're not ordering them server-side, instead you have a set order then a script is called client-side which checks the cookies and then re-orders them. Or am I wrong there?

 

My suggestion would be that when the page is loaded, you check for the ordering there and order them. That way when the output is displayed to the user, they are already in their correct position. Instead of waiting for the JavaScript to position them.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.