The problem:
1.  You use uShopInput20 and want to make use of the View button.
2.  Unfortunately, this means you have to code a html page for each and 
every product you want to "view".  Yes, you could just display an image, but 
it doesn't look professional...

Lets think about that further:
1.  If you did code a html page for each and every product, then each page 
would be identical - other than for the product specific bits - typically 
product code, description etc.
2.  As you're using uShopInput20, all the information you need has already 
been encoded in the uShop20 applet.
3.  The uShopInput20 applet can call a html page

The solution:
1.  It is possible to pass information between html pages.  Have you ever 
noticed web pages that have loads of text after the web site address - 
typically interspersed with query (?) marks...
2.  Typically, your uShopInput20 applet code would like something like:
    <APPLET CODE="uShopInput20.class" CODEBASE="../classes/" WIDTH=500 
HEIGHT=415>
      <PARAM NAME="target"             VALUE="FRAME2">
      <PARAM NAME="product_list"       VALUE="
       code1,type1,description1,weight1,price1,code1.html;
       code2,type2,description2,weight2,price2,code2.jpg;
       code3,type3,description3,weight3,price3,NONE;
      ">
      <PARAM NAME="qty"                VALUE="1">
      <PARAM NAME="show_qty"           VALUE="YES">
      <PARAM NAME="show_id"            VALUE="NO">
      <PARAM NAME="show_name"          VALUE="NO">
      <PARAM NAME="show_description"   VALUE="YES">
      <PARAM NAME="show_weight"        VALUE="NO">
      <PARAM NAME="show_price"         VALUE="YES">
      <PARAM NAME="classification"     VALUE="NONE">
      <PARAM NAME="shipping_modifier"  VALUE="0.00">
      <PARAM NAME="taxable"            VALUE="YES">
      <PARAM NAME="popup"              VALUE="NO">
      <PARAM NAME="background_color"   VALUE="black">
      <PARAM NAME="text_color"         VALUE="#0099FF">
      <PARAM NAME="fontsize"           VALUE="12">
    </APPLET>
3.  Note that the final entry for each of the three product_list items are 
the possible alternatives:
  3a.  code1.html		means call this html page when the user presses the 
"VIEW" button
  3a.  code1.jpg		means display this image when the user presses the "VIEW" 
button
  3a.  NONE				means don't put up a "VIEW" button
4.  OK, suppose you want a product page with the following variable 
information on it:
       TYPE OF INFORMATION				EXAMPLE
  4a.  range code						discdeoi
  4b.  general description				Crown Derby
  4c.  specific description				Old Imari
  4d.  product code						cdeoi255
  4e.  short desc for small basket		Old Imari
  4f.  product description				10inch plate
  4g.  product weight					0
  4h.  product price					80.90
  4i.  product taxable					YES
5.  So, you need to pass that information to the "product view page 
template":
  5a.  ../html_products/!template.html?discdeoi?Crown Derby?Old 
Imari?cdeoi255?Old Imari?10inch plate?0?80.90?YES;
  5b.  the "../html_products/!template.html" bit refers to the physical 
location and name of the html template page - you can of course rename the 
page to whatever you want.  Equally, you might want a number of templates...
  5c.  So, you'd code your uShopInput20 applet something like:
    <APPLET CODE="uShopInput20.class" CODEBASE="../classes/" WIDTH=500 
HEIGHT=415>
      <PARAM NAME="target"             VALUE="FRAME2">
      <PARAM NAME="product_list"       VALUE="

   cdepw256,Old Imari   ,Honey Bear Paperweight        ,0, 86.85,
./html_products/!template.html?discdeoi?Crown Derby?Old Imari?cdepw256?Old 
Imari?Honey Bear Paperweight?0?86.85?YES;

   cdeoi256,Old Imari   ,Ginger Jar small              ,0,136.20,
./html_products/!template.html?discdeoi?Crown Derby?Old Imari?cdeoi256?Old 
Imari?Ginger Jar small?0?136.20?YES;

   cdeoi257,Old Imari   ,Octagonal Plate               ,0,114.90,
./html_products/!template.html?discdeoi?Crown Derby?Old Imari?cdeoi257?Old 
Imari?Octagonal plate?0?114.90?YES;

      ">
      <PARAM NAME="qty"                VALUE="1">
      <PARAM NAME="show_qty"           VALUE="YES">
      <PARAM NAME="show_id"            VALUE="NO">
      <PARAM NAME="show_name"          VALUE="NO">
      <PARAM NAME="show_description"   VALUE="YES">
      <PARAM NAME="show_weight"        VALUE="NO">
      <PARAM NAME="show_price"         VALUE="YES">
      <PARAM NAME="classification"     VALUE="NONE">
      <PARAM NAME="shipping_modifier"  VALUE="0.00">
      <PARAM NAME="taxable"            VALUE="YES">
      <PARAM NAME="popup"              VALUE="NO">
      <PARAM NAME="background_color"   VALUE="black">
      <PARAM NAME="text_color"         VALUE="#0099FF">
      <PARAM NAME="fontsize"           VALUE="12">
    </APPLET>
6.  Now you've got a html page that calls the SAME (!template.html) page for 
each and every product - you're just passing different information each 
time.  (calling.html contains a full, working example from 
www.thechinashop.co.uk.)
7.  Now you need that !template.html page to do the work for you.  Take a 
look in !template.html
  7a.  Change the title as required
  7b.  Change the colours as required
  7c.  Steps 1 to 5 isolate the parameters that your "calling" page sent
  7d.  Even if you don't need all the parameters I use in my example, I 
suggest you use them (put in dummy values).  That way, the references to 
Pvars[nn] will remain the same...
  7e.  Change Step 6 to reflext your own display code.  Thea easiest way to 
do this, is to copy the relevant area out of one of your own product display 
pages and the wrap a document.write('') around each line (thats what I did).
  7f.  Don't forget to change any file locations to reflect the structure of 
your own site.


Hope this all helps.  For a full working example, take a look at 
www.thechinashop.co.uk.  Note that its a relatively new site and my client 
hasn't uploaded all of the photographs yet...  However, one area that is 
definitely complete, is:
o  Departments, China, Royal Worcester, Candle Snuffers
o  pick any range and then press a "VIEW" button...

If you find this useful / have any comments, email me: 
webmaster@thechinashop.co.uk

