Results 1 to 4 of 4

Thread: Java script help please

  1. #1
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java script help please

    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>

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Could you post the JavaScript code you are using or a link to your site?
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

  3. #3
    Join Date
    Dec 2008
    Location
    Nigeria
    Posts
    95
    Thanks
    3
    Thanked 8 Times in 8 Posts

    Default

    Alternatively, u can create a workin copy and post that link to us

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Quote Originally Posted by diltony View Post
    Alternatively, u can create a workin copy and post that link to us
    Me???
    Eddy Proca
    I love Dropbox. Get it through my girlfriend's referral link (I reached my limit) and both you and her get 500 MB extra! Thanks and you're welcome!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •