Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 258 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Cookies - Need some help

Thread title: Cookies - Need some help
Closed Thread    
    Thread tools Search this thread Display Modes  
01-15-2008, 06:35 PM
#1
Steven Fergus is offline Steven Fergus
Status: Hey, I'm Steven
Join date: Feb 2007
Location:
Expertise:
Software:
 
Posts: 1,212
iTrader: 3 / 100%
 

Steven Fergus is on a distinguished road

  Old  Cookies - Need some help

Hello,

I'm trying to validate a form selling "Widgets" using JavaScript. So far I have the validation bit done and I'm really happy with what I've done so far! I now have to move on to the cookies part. Basically, I want there to be a confirmation page which shows all of the details entered in the form and calculates the total price. I need a little help with setting the cookies.

I start off by using this code:

Code:
 function setCookie(name, value)
      {
        document.cookie = name + "=" + escape(value)
        
      }
Now I need to set the data entered into the form as cookies. How would I do that? I don't want someone to do it for me, I just want to know how I would use setCookie("name","value") to work with my form.

Thanks in advance,
Steven

02-24-2008, 12:06 PM
#2
jingceawlin is offline jingceawlin
Status: I'm new around here
Join date: Feb 2008
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

jingceawlin is on a distinguished road

Send a message via Yahoo to jingceawlin

  Old

YUI 2.5 introduced a new component which would make your life a lot easier.
http://developer.yahoo.com/yui/cookie/

Hope this helps,
Jing

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed