Categories > TinyButStrong general >

headergrp problems

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Trent
Date: 2008-07-26
Time: 22:20

headergrp problems

Okay, I have a data table for a game that displays items for sale in a shop using the item_type as the headergrp.  I also have a java tooltip that is supposed to show information about each item, and it does, sort of.  When I load the shop page, it shows the tooltip for the first item in the list, and then the fifth item and so on and so forth.  It keeps skipping 4 items in between each tooltip it displays.  I have the same type of system set up without using the headergrp setting and it works fine but i really need to be able to group the items display.  Can someone look at my html below and at least point me in the right direction?

<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="menu_cell">
    <td width="45%">[inventory.item_type;if [val]=1;then 'Weapons';if [val]=2;then 'Armor';if [val]=3;then 'Accessories';if [val]=4;then 'Ships';if [val]=5;then 'Ammunition';else 'Consumables';block=tr;headergrp=item_type]</td>
    <td width="15%">Qty</td>
    <td width="15%">Price</td>
    <td width="25%">&nbsp;</td>
  </tr>
  <tr>
    <td class="row_1">[inventory.item_name;htmlconv=no]&nbsp;<img src="images/icons/icons/information.png" alt="Information" border="0" onMouseover="fixedtooltip('<B>Description</B><BR>[inventory.item_desc]<BR><B>Attributes</B><BR>[inventory.item_attributes]', this, event, '250px','#ffffff')" onMouseout="delayhidetip()"></td>
    <td class="row_1"><div align="center">[inventory.item_qty;if [val]-+1;then '0';else '[inventory.item_qty;frm='0,000.']']</div></td>
    <td class="row_1"><div align="center">[inventory.item_buy;frm='0,000.']</div></td>
    <td class="row_1">[inventory.item_qty;if [val]+=-1;then '<a href="[var..script_name]?act=buy&item_id=[inventory.item_id]&shop_id=[shop.shop_id]">Purchase</a>';else 'Out Of Stock';block=tr]</td>
  </tr>
  <tr>
    <td class="row_2">[inventory.item_name;htmlconv=no]&nbsp;<img src="images/icons/icons/information.png" alt="Information" border="0" onMouseover="fixedtooltip('<B>Description</B><BR>[inventory.item_desc]<BR><B>Attributes</B><BR>[inventory.item_attributes]', this, event, '250px','#ffffff')" onMouseout="delayhidetip()"></td>
    <td class="row_2"><div align="center">[inventory.item_qty;if [val]-+1;then '0';else '[inventory.item_qty;frm='0,000.']']</div></td>
    <td class="row_2"><div align="center">[inventory.item_buy;frm='0,000.']</div></td>
    <td class="row_2">[inventory.item_qty;if [val]+=-1;then '<a href="[var..script_name]?act=buy&item_id=[inventory.item_id]&shop_id=[shop.shop_id]">Purchase</a>';else 'Out Of Stock';block=tr]</td>
  </tr>
  <tr class="menu_cell">
    <td colspan="4"><p>[inventory;block=tr;nodata]Thar be nothing for sale in this shop.</p>
      <p>Perhaps ye should consider a local career tonproduce items for this shop. </p></td>
    </tr>
</table>