Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-13-2011, 07:08 PM   PM User | #1
kruk1001
New to the CF scene

 
Join Date: Jul 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
kruk1001 is an unknown quantity at this point
Passing javascript menu settings

Hello! I have a question about a concept I'm working with. I want to create an html page that displays several links to different pages on the site. The user would then be able to drag and drop these links into some sort of list. That part I have figured out. Once they've finished creating their list, they would be able to click on the links in the list. The question I have is this: if they click on a link in the list and go to that page, can their list again be displayed on the new page along with the items they added to it on the previous page? If this is a simple cookie thing, that is awesome. I can't utilize a database or anything server-side for this. HTML and javascript only. Any help would be hugely appreciated, as my programmer is out today.

Last edited by kruk1001; 07-13-2011 at 10:02 PM..
kruk1001 is offline   Reply With Quote
Old 07-13-2011, 07:38 PM   PM User | #2
Budreaux
New Coder

 
Join Date: Aug 2005
Posts: 71
Thanks: 9
Thanked 3 Times in 3 Posts
Budreaux is an unknown quantity at this point
i'm guessing your using OL or UL lists to save the links. if thats the case, then i think it is possible with a cookie. since it is a name/value pair, you could store a cookie as
Code:
 
name - value
links - link1, link2, link3, etc.
then use a script on the next page to pull in the cookie, split the values and write them to the list.
__________________
It's OK to pee against the wind if your standing in a lake.
Budreaux is offline   Reply With Quote
Users who have thanked Budreaux for this post:
kruk1001 (07-13-2011)
Old 07-13-2011, 07:45 PM   PM User | #3
kruk1001
New to the CF scene

 
Join Date: Jul 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
kruk1001 is an unknown quantity at this point
Awesome. I figured there was a way. I thought I'd better find out from an authority before giving my client the idea.

This site is a challenge because it has a lot of content, but no support for database, php or anything to make life easier.

Thanks so much for your help!
kruk1001 is offline   Reply With Quote
Old 07-13-2011, 08:21 PM   PM User | #4
Budreaux
New Coder

 
Join Date: Aug 2005
Posts: 71
Thanks: 9
Thanked 3 Times in 3 Posts
Budreaux is an unknown quantity at this point
no problem. you may want to go back and mark this thread as resolved. Also, there is a way to do a client side database using javascript and xml. I have one on a site that I built just to see if I could actually do it. It works pretty well and I like the fact that the clients pc power does the work instead of the server. It's a flat file database, no relationships, but for displaying things such as product code, description, price, etc. it works perfectly.
__________________
It's OK to pee against the wind if your standing in a lake.
Budreaux is offline   Reply With Quote
Reply

Bookmarks

Tags
cookie, drag and drop, javascript, list

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:53 PM.


Advertisement
Log in to turn off these ads.