SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Aug 2003
    Location
    England
    Posts
    391
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    For the major JS boffs..

    I have this code..
    Code:
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">
    
    <title>Elliott Loohire Product Catalogue - View Basket</title>
    
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/fonts.css">
    
    </head>
    
    <body class="view-basket">
    
    <table class="table-1" cellspacing="0" cellpadding="0" border="0">
    	<tr>
    		<td class="page-title">
    		<font class="page-title">View Basket</font></td>
    		<td class="add-cart">
    		&nbsp;</td>
    	</tr>
    </table>
    
    <div align="center">
    <table class="view-basket" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td class="basket-item">Item</td>
    <td class="basket-quantity">Quantity</td>
    <td class="basket-remove">&nbsp;</td>
    </tr>
    
    <SCRIPT LANGUAGE="JavaScript">
    var index;
    for (index=0;index<top.heading.no_items;index++)
    {
    	document.write("<tr>");
    	document.write("<td class='basket-item-2'>"+top.heading.basket_item[index]+"</td>");
    	document.write("<td class='basket-quantity-2'>"+top.heading.basket_qty[index]+"</td>");
    	document.write("<td class='basket-remove'><INPUT type='button' value='Remove' onClick='javascript:top.heading.Remove_Item(\x22"+top.heading.basket_item[index]+"\x22)'></td>");
    	document.write("</tr>");
    }
    </SCRIPT>
    
    </table>
    
    <table class="view-basket" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td class="basket-item"></td>
    <td class="basket-quantity"></td>
    <td class="basket-remove"><INPUT type="button" value="Remove All" onClick="javascript:top.heading.RemoveAll()"></td>
    </tr>
    </table>
    </div>
    
    </body>
    </html>
    This needs to be converted into plain html and sent to an email address via the webpage.. Without the remove button

    (eg
    Code:
    <INPUT type="button" value="Remove All" onClick="javascript:top.heading.RemoveAll()">
    Don't forget there maybe many <TR><TD> with data in the JS..

    Impossible??


  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need to use a Server Side language such as PHP or Perl to accomplish this. Try asking for some examples in those forums.


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
  •