JavaScript for E-Commerce

Back | Contents | Next
Please note that this tutorial was first published in the year 2000, and is based on work conducted between 1997 and 2000. While we trust that it still constitutes useful tutorial material, it should not necessarily be construed as to impart best practice in the year 2016. For more details please see this blog post.

Framework - item-0001.html, ...

The item-0001.html, item-0002.html, ..., item-0983.html files contain the actual item name, description and picture for each item. The name of the file consists of the string "item-" followed by the item's unique identifier number padded out to four digits.

Source

<html>

<body>

<table border="0" cellpadding="1" cellspacing="1">
    <tr>
        <td><b>Penyon - Some People</b></td>
        <td align="right">$10.00</td>
    </tr>
    <tr>
        <td colspan="2">

            <img src="images/0001.jpg" width="128" height="128"
                border="0" align="left" hspace="8" vspace="4">

            <p><i>Penyon</i> is an independent
            rock band based in Melbourne, Australia.</p>

            <p><i>Some People</i> is their first EP.  Sample MP3 files
            can be downloaded from their
            <a href="http://www.penyon.com/" target="_blank">web site</a>.</p>

            <ol>
                <li>Resolution
                <li>My Way
                <li>Break Away
                <li>Y.P.D. Bikini
                <li>Shweet
                <li>Sleazy
            <ol>

        </td>
    </tr>
</table>

</body>

</html>
			

Description

Only the source of item-0001.html is listed here.

These files are straight HTML. They will be loaded into the content frame when the user selects the respective item in the item frame.


Back | Contents | Next

This tutorial has been translated to Serbo-Croatian language by Jovana Milutinovich from Webhostinggeeks.com.

This tutorial has been translated to Slovak by Juraj Rehorovsky from Coupofy team.

If you find this tutorial useful and want to show your apprectiation, a small donation is most welcome, either in Bitcoins to 19QpWDmZPmTqawcr8VsXcbdc4Znq1ecrza, or via PayPal.