28Aug/093
Working with Cookies
Written By: Joseph Crawford
Over the last few days I have been working with the Cookie as a method for storage on the Palm Pre. I looked in the WebOS Book and there was a nice cookie class that could be used. This will not be a complete walk-through like the last tutorials have been. This will show you how to create a cookie object and how to interact with it so that you can store your application preferences. You can store any type of data you would like in a cookie. It does not seem to be like the Depot where you can *only* store objects.
At the time of writing I have found an issue with using cookies so be sure to read the second to last paragraph.
Below is the class that was taken from the WebOS Book which we will be using for our Cookie object.
Navigation
Calendar
8
2010
| << | Aug 2010 | >> | ||||
| M | T | W | T | F | S | S |
| 26 | 27 | 28 | 29 | 30 | 31 | 1 |
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 1 | 1 | 2 | 3 | 4 | 5 |
Most Viewed
- A Basic WebOS Application... (2,983)
- Mojo Lists (Part 1) (1,484)
- Mojo Lists: Using a Cooki... (977)
- Mojo Lists: Using the Dep... (836)
- Mojo Lists: Restructuring... (645)
- Working with Cookies (484)
- Events (213)
- Tutorials (140)
- First Meeting Scheduled f... (82)
- Annoying bug found in Pal... (76)
Categories
- App Catalog (1)
- Bugs (1)
- Development (8)
- JavaScript (2)
- Meetings (8)
- Mojo (5)
- Organization (11)
- Palm (2)
- Tutorials (8)
StatPress
Visits Today: 0Total Visits: 4493
Guests Online: 0
Members Online: 0
Archives
- October 2009 (2)
- September 2009 (10)
- August 2009 (11)