PDA

View Full Version : Java script help please



johnkennykumar
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
<html>
</head>
<body>
<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>
</div>
<ul id="catalog">
<li>
<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>
</li>

</ul>


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

</body>
</html>

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

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

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

Me???