Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old April 21st, 2007, 02:54 PM   #1
New Member
 

Join Date: Apr 2007
Location: UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lexxi is on a distinguished road
Javascript wishlist

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 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old April 24th, 2007, 05:55 AM   #2
New Member
 

Join Date: Apr 2007
Location: UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lexxi is on a distinguished road
Re: Javascript wishlist

PLEASE HELP

The following cookie is formed by clicking my add to wishlist buttons:

cookieString =
'photo1:This is photograph one=link1&' +
'photo2:This is photograph two=link2&' +
'photo3:This is photograph three=link3&' +
'photo4:This is photograph four=link4'

I need to know how to produce this:



where photo1 is a jpg file, and link1 is an htm file.

I have only been working with javascript for 2 months so I am a real noob and need serious help.
Lexxi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
loop , split


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
php and javascript yvettesio JavaScript 8 March 14th, 2007 08:18 PM
JavaScript cbrams9 JavaScript 1 September 20th, 2006 01:35 PM
using xml in javascript shailu JavaScript 0 July 25th, 2006 03:36 AM
Can someone help me with this javascript Galaxyblue JavaScript 2 March 11th, 2004 08:18 AM
what does \\ mean in javascript jenjen1018 JavaScript 5 January 6th, 2004 01:05 PM


Search Engine Optimization by vBSEO 3.2.0 RC8