Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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 11:02 PM.

  • #2
    New Coder
    Join Date
    Aug 2005
    Posts
    71
    Thanks
    9
    Thanked 3 Times in 3 Posts
    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.

  • Users who have thanked Budreaux for this post:

    kruk1001 (07-13-2011)

  • #3
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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!

  • #4
    New Coder
    Join Date
    Aug 2005
    Posts
    71
    Thanks
    9
    Thanked 3 Times in 3 Posts
    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.


  •  

    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
    •