View Full Version : Java script help please

12-10-2008, 04:36 AM
Well i have this shopping cart code ,There are two static products along with their prices,My task is when i click the check out button the products along with their prices should appear in pay pal.This should happen for any no of products i add later.Any help would be welcome
<div id="topFrame"><img src="images/greenLogo.gif" alt="simpleCart(js)" style="vertical-align:middle;margin:-1px 20px 0 0" /> <a href="#">Docs</a> &nbsp;&nbsp;&nbsp;<a href="#">Download</a></div>
<div id="content">
<div id="header">
<h1>simpleCart (js)</h1>
<ul id="catalog">
<img src="images/products/creamSlipon.jpg" alt="Cream Slip-on" />
<span class="price">$45</span><b>Cream Slip-on<br/><a href="#" onclick="simpleCart.add('name=Cream Slip-on','price=45','image=images/thumbs/creamSlipon.jpg');return false;"> add to cart</a></b>


<div id="sidebar">
<h2>Your Cart</h2>
<input type="text" readonly="true" size="10" value="1" name="textname">&nbsp;&nbsp;&nbsp;
<input type="text" readonly="true" size="10" value="2" name="textname">&nbsp;&nbsp;&nbsp;
<div class="simpleCart_items" >
<a href="#" class="simpleCart_empty">empty cart</a>
<input type="button" value="checkout"
onclick="checkOut()" >


12-10-2008, 09:44 AM
Could you post the JavaScript code you are using or a link to your site?

12-16-2008, 11:09 PM
Alternatively, u can create a workin copy and post that link to us

12-16-2008, 11:17 PM
Alternatively, u can create a workin copy and post that link to us