Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2005, 05:25 PM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem editing cokie

Hello friends. I'm building a kind of shopping cart who tracks into a cookie the choices picked by the user along some pages. Anytime the user can go to a .php page where the choosen items are shown, prices, total, etc. I would like to add some feature to allow the user to drop some item of his list, I've been working in a form checkbox who calls onClick a function who is able to get the target value and erase it out of the cookie string. But I can't have this working because:
- I need to refresh the page automatically at the end of the function, so the changes can be shown in the browser.
- I'm not sure if I need to delete the cookie before write the new one, or if overwrite will be enough.
I forgot to say that I'm reading and writing the cookies through JavaScript, I'm using PHP only to get data from DB.
I will appreciate any help.





Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid Editing Problem gaurav_jain2403 .NET Framework 1.x 2 December 9th, 2006 04:33 AM
Problem with Datagrid Editing pramesh_it ASP.NET 1.0 and 1.1 Basics 0 April 17th, 2006 09:58 AM
Problem with editing my cell data in PHP. changusee2k Pro PHP 0 March 15th, 2006 03:57 AM
ASP(C#) : datagrid editing - alert problem shazia1 VS.NET 2002/2003 0 July 4th, 2005 03:34 AM
.NET Text / HTML editing problem clickco General .NET 3 May 12th, 2004 02:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.