Javascript wishlist

Discussion in 'General Business' started by Lexxi, Apr 21, 2007.

  1. #1
    I hope someone can help me with this. I am trying to display a wishlist on my site.

    The cookie is:

    var cookieString = 'prodimage01:product Name and basic info=poductlink01&' + 'prodimage02:product Name and basic info=poductlink02&' + 'prodimage03:product Name and basic info=poductlink03&' + 'prodimage04:product Name and basic info=poductlink04&'

    function SetCookie(name, value) {
    document.cookie = name + "=" + escape(value);
    }

    SetCookie('wishlist', cookieString);


    Where prodimage01 etc relates to prodimage01.jpg (photograph of that product) and productlink01 is productlink01.htm (link back to that products page).

    I want to be able to display the image, the name and info as shown in the cookie, and the link back to the product page.

    "&" separates the indiviual products, and ":" and "=" separate the data for each product.

    How do I display this?

    Thanks
     
    Lexxi, Apr 21, 2007 IP