C
Carl Read
Hi,
First I would like to state that I am not a JavaScript expert.
I have a simple shopping basket that uses cookies. The problem is that all
the product pages and basket must be in the the same folder.
I was wondering if it is possible to create and save a cookie so that it can
be accessed and viewed by HTML pages that are located in various different
folders?
Here is the code relating to the cookie:
document.cookie='TheBasket='+document.cookie.substring(countbegin,countend)+'['+newItem+'|'+newPrice+'|'+newTaxable+'|'+newURL+'|'+newQuantity+'];
expires= '+today+'';
index=document.cookie.indexOf('TheBasket');
Thanks,
Carl.
First I would like to state that I am not a JavaScript expert.
I have a simple shopping basket that uses cookies. The problem is that all
the product pages and basket must be in the the same folder.
I was wondering if it is possible to create and save a cookie so that it can
be accessed and viewed by HTML pages that are located in various different
folders?
Here is the code relating to the cookie:
document.cookie='TheBasket='+document.cookie.substring(countbegin,countend)+'['+newItem+'|'+newPrice+'|'+newTaxable+'|'+newURL+'|'+newQuantity+'];
expires= '+today+'';
index=document.cookie.indexOf('TheBasket');
Thanks,
Carl.