War Room

Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Featured Warrior Special Offer...
"Members Of The *War Room* Discover Secrets To Immediate Success!"
Reply
 
LinkBack Thread Tools
Old 07-17-2009, 07:28 PM   #1
Warrior Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default need help with a cookie

hey all
I have a live weather feed using rss on my site and users can enter a zip code to show the weather where ever they are. I need to leave a cookie with the zip they enter and then retrive it and insert it in the feed when they come back. any ideas.


I can use a default zip and change it with the form on the page but I need to know how to check for the cookie use it if its there or create it if its not or use the default if it the first visit. any ideas would be great thanks
bmcollowner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-17-2009, 07:50 PM   #2
Advanced Warrior
War Room Member
 
Steve Diamond's Avatar
 
Join Date: Apr 2006
Location: Tucson, AZ, USA.
Posts: 972
Thanks: 106
Thanked 143 Times in 103 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to Steve Diamond
Default Re: need help with a cookie

I'm attaching a zip file that includes example code from David Flanagan's excellent book, "JavaScript, The Definitive Guide." The zip has two files. One, cookie.js, is a class for manipulating cookies. The other, 01.html, has an example of how to use the class which I think you'll be able to adapt for your purpose.

Steve
Attached Files
File Type: zip cookies.zip (3.0 KB, 2 views)

Executive I.T. consulting for small/medium business
Website development | PHP - MySQL - JavaScript expert programming
Software requirements analysis | Specification writing
Project management | Vendor relationship management
Steve Diamond is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-19-2009, 12:05 AM   #3
Warrior Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: need help with a cookie

Thanks Steve
I will try to figure it out when im less tired. Had a family day today went hiking.

I was hoping to do it with php as I understand the flow and can make mods But I will try the java. My site is bmcoll.com if you want to see what I am trying to do.
bmcollowner is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
cookie

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



All times are GMT -6. The time now is 01:57 PM.