Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Help creating cookie to store js variable
Old 12-22-2008, 03:32 PM Help creating cookie to store js variable
Junior Talker

Posts: 1
Name: Travis Walker
Trades: 0
Im not very good with javascript so I'm hoping someone can help out.


I've created a table that pulls info out of a database via ASP.

Then I used javascript code found at
http://www.tek-tips.com/faqs.cfm?fid=5220

that allows the users to reorder the columns as they see fit.

I would like to store their preferance into a cookie, so whenever they return to that page, the column order is how they left it.

Could someone please explain/ show how I can do this?

I believe the variable holding the order is var oHid_Order ?? but im not sure, also. I don't know how to store that info in the cookie.
kardson is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-22-2008, 07:55 PM Re: Help creating cookie to store js variable
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Here's a pretty simple script to use cookies called Cookie Jar. There's not a lot of documentation, but what you need is there. You will need to download protoype.js since the Cookie Jar script relies on it.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Help creating cookie to store js variable
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54527 seconds with 12 queries