@keithyauthorApr 25.2005 — #i have recently just started to learn java, so it would be interesting to try and work them together but would i be better off writing the whole thing in java (when i have the experience of course ).Do you know any sites that contain any example coding of shopping carts in javascript or other? As i am struggling on this one.
@felgallApr 25.2005 — #Here is a sample [URL=http://www.felgall.com/cart]frames/Javascript shopping cart[/URL] that I wrote some time ago. To see an explanation of how it works and obtain a copy of the code go [URL=http://www.felgall.com/jstip39.htm]here[/URL]
it reads a small txt database file with the products prices etc...[/QUOTE]
It looks good but it doesn't work. Javascript has no file access so it can't write to a text file. Your cart will therefore only work on Internet Explorer and not on real web browsers.
@slaughtersJul 26.2006 — #It looks good but it doesn't work. Javascript has no file access so it can't write to a text file. Your cart will therefore only work on Internet Explorer and not on real web browsers.[/QUOTE]Then all he needs to to is to simply replace the txt file with an xml file, or .js file containing the info needed.
But - JavaScript solutions to shopping carts frequently need to rely on cookies
@MBComputerStoneJul 26.2006 — #NEXT WEEK I'LL REPLACE IT WITH NEW PAGE DESIGN AND SMALL CHANGES IN SOURCE CODE .
SLAUGHTERS SAID THEN simply replace the txt file with an xml file, or .js file containing the info needed I KNOW WHAT YOU MEAN, THAT ACTIVEX SHOULD READ XML FILE I KNOW THAT BUT I READ TXT INSTEAD AND IT WORKS ON ANY INTERNET BROWSER AS I HAVE USED FUNCTION TO CHECK BROWSER TYPE SO I KNOW WHICH ACTIVEX TO USE.
MY TEXT BASED DATABASE IS ON MY SERVER AND I READ IT by using 2 ACITVEX.
@felgallJul 27.2006 — #IT WILL WORK ON ANY ie. i HAVE TESTED IT.[/QUOTE] It doesn't work on all browsers. I tested it and it didn't save anything that was selected.
@felgallJul 27.2006 — #ActiveX only works on Internet Exploder and the file saving options there are specifically for intranet use and will not run for anyone who has proper security installed on their system. Also with IE7 Microsoft is turning off ActiveX completely as it has too many security holes to patch.
@MBComputerStoneJul 29.2006 — #felgall what about Mozilla, Firefox, Opera, Internet Explorer, does it work on any of them. Come on tell us . I know it does work. at least 70% of all people use Internet Explorer and 30% any other. Mozilla, Firefox, Opera & ActiveX work fine and it can not be true that it does not work on mozzila because ActiveX only works on Internet Explorer and the file saving options there are specifically for internet use and will not run for anyone who has proper security installed on their system. My internet provider request from me to enable AcitiveX or I can not use the internet. Simply ActiveX has it's use and it's used by many internet companies.
@MBComputerStoneJul 29.2006 — #Cookies must be enabled , sorry if did not mentioned it at all. sorry fegall my appology to you from bottom of my heart. I've used cookies to save the order's data into it.