Solved

Javascript Shopping Kart

Posted on 2004-04-22
9
268 Views
Last Modified: 2008-02-01
Hi Everybody,

Does anyone have an example of a working Javascript Shopping kart that I could
use for my website?

Thanx in advance!

0
Comment
Question by:Geerd
  • 5
  • 4
9 Comments
 
LVL 1

Accepted Solution

by:
tomwoods earned 500 total points
ID: 10888898
This one is very complete, i've tried it and it works fine. You can even download a pre-populated demo that runs right off. Cool!!: http://www.nopdesign.com/freecart/index.html
0
 
LVL 1

Author Comment

by:Geerd
ID: 10907073
Hi Tom,

Thanks 4 the link, that shopping cart is great.

I'm stuck on one issue though. When I run the checkout.html I get the error:

The requested URL /cgi-bin/checkout.pl was not found on this server.

The File is there and i tried almost everything. In the Checkout.html I tried:

<form action="http://www.spanjewijn.nl/cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">

and this

<form action="/cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">

and this

<form action="../cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">

But I just keep getting the "can't find" error.

If you answer this one question the points are definately yours.

thanx in advance!

0
 
LVL 1

Expert Comment

by:tomwoods
ID: 10907316
totally right. the correct form action (you have to have perl installed on your server, but most do) would be:

<form action="../cgi-bin/checkout.pl" method="POST" onSubmit="return CheckForm(this)">

the two points in front tell it to go down from the current directory (htdocs) one step. Then the /cgi-bin/ tells it to go up to the cgi-bin directory.

Cheers
Thomas W.
0
 
LVL 1

Author Comment

by:Geerd
ID: 10907678
Mmmmm, my checkout.html page is in the root of my www directory so ./ should be enough.

I don't get it.... the reference from the checkout.html is correct, I''m sure of that.
Why then do I get the error message The requested URL /cgi-bin/checkout.pl was not found on this server.

The .PL extension is a Perl Extension? Perhaps Lycos doens't have Perl installed.

any ideas?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Author Comment

by:Geerd
ID: 10907808
Thomas,

When I put a regular html file in the directory cgi-bin I can't open it. When I rename the directory to something else I can open it. It seems to be something with the name cgi-bin.

mmmmm....

0
 
LVL 1

Author Comment

by:Geerd
ID: 10907829
Thomas,

I've renamed the cgi-bin directory to Checkout. I also changed the reference in checkout to ./Checkout/Checkout.pl

No I'm getting this message...

The requested method POST is not allowed for the URL /Checkout/checkout.pl.

is this a lead?

thanks for all your help so far!
0
 
LVL 1

Expert Comment

by:tomwoods
ID: 10908246
ok. We should probably find out if you can use perl scripts. Create a blank file and rename it to hello.pl

Place this code in the file:

#!/usr/bin/perl
print "Hello World\n";
# End of script

Upload it (ASCII, not Binary), chmod it to 755 and point your browser at it.
Tell me if it shows the hello world text.
1) If it does then perl is installed and there may be a problem with the script itself or with the permissions on your server.
2) If it doesn't then we need an alternate approach


The other way out is to use PayPal and have the form send the variables to the paypal site and have them deal with your checkout process. Same would apply with any other third party system like 2checkout.com.

Keep me up to speed.
t
0
 
LVL 1

Expert Comment

by:tomwoods
ID: 10908274
Hold on. Try changing this:

<form action="../cgi-bin/checkout.pl" method="GET" onSubmit="return CheckForm(this)">

I read the perl script and it takes its variables from GET method and not POST so theory the form method is wrong.

regards,
Thomas

0
 
LVL 1

Author Comment

by:Geerd
ID: 10913152
Hi Thomas,

I fixed the problem.... I'm using the php variant now.
My ISP does have a cgi script but does not allow any other cgi usage.

Thanx for everything.... the points are yours!

Geerd
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now