Closed Thread Icon

Topic awaiting preservation: JavaScript shopping cart, is it possible? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=9023" title="Pages that link to Topic awaiting preservation: JavaScript shopping cart, is it possible? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: JavaScript shopping cart, is it possible? <span class="small">(Page 1 of 1)</span>\

 
sideout
Bipolar (III) Inmate

From: Hull, Que, Can
Insane since: Feb 2004

posted posted 02-13-2004 22:54

Is there a way using javascript to detect if a cookie is set?
what I mean is;

is there property that identifies the cookie as being set or not set?

Can anyone help, if not with javascript then Jscript?

Thanks alot,

[This message has been edited by sideout (edited 02-13-2004).]

JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 02-13-2004 23:09

only using javascript? No, not possible.

javascript is a client side language (scripts run on the user's/browser's/surfer's local machine). for shopping cart systems you'd need to use a server side scripting language to put and take from database and interface the payment system among other things.

sideout
Bipolar (III) Inmate

From: Hull, Que, Can
Insane since: Feb 2004

posted posted 02-13-2004 23:24

Thanks Jason,

Can you tell me where to get information on perl (what I need to use , [right?]) to make this happen.
I realize this is no small project and can be a long and painful journey but just how involved is it?

sideout

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 02-14-2004 21:00

You actually asked two different questions. The first: is it possible to make a shopping cart using only JavaScript? Mabry gave you the answer to that.

The second question: Can you detect cokies from JavaScript? The answer to tha question is yes you can. Use document.cookie to access the cookie for a page from JavaScript.




-- not necessarily stoned... just beautiful.

Wakkos
Maniac (V) Mad Scientist

From: Azylum's Secret Lab
Insane since: Oct 2000

posted posted 02-17-2004 10:40

Is not the Doc's shop at http://www.cafeshops.com made in JavaScript?

______________
that naked guy

Cameron
Bipolar (III) Inmate

From: Brisbane
Insane since: Jan 2003

posted posted 02-17-2004 19:08

Holy crap Wakkos, where'd you come from... and put some bloody clothes on!

-----

Technically, you *could* make a shopping cart with javascript. But it would be *very* insecure and a complete maintence nightmare. Even then you'd eventually need some kind of "checkout" which would send the purchase request to a serverside script for logging and further processing by the sales people.

-----

ps. wakk, dis be dracusis incase you missed the change over.

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 02-17-2004 23:13

If you want a shopping cart i would suggest php as language (if your server supports it) it is said easy to learn and there are a lot of examples and documents about php to be found.


__________________________________________
finally: www.rinswind.nl

Ramasax
Paranoid (IV) Inmate

From: PA, US
Insane since: Feb 2002

posted posted 02-18-2004 02:07

Not to mention plenty of open source PHP carts to start with.

I have successfully set up ZenCart in the past, and it is free and open source. I am a PHP beginner, and the installation was a snap for me. This was just in practice though, and I have never actually implemented it for use, but it is a starting point.

I am sure there are others out there with better recommendations.



« BackwardsOnwards »

Show Forum Drop Down Menu