3 Replies Latest reply: Sep 12, 2014 12:30 PM by bregent RSS

    Tooltips wont display database information when in repeat region

    Max Resnikoff Community Member

      Hi,

       

      I have a inventory list on my site, and there is no space for a large paragraph (Book Descriptions to be exact).

       

      I have added a tooltip to the repeat region, and inserted the 'description' Binding, but nothing appears.

       

      If i type something in before the {bookinv.description} it shows up.

       

      Can anyone help please?

       

      Below is my code for the issue stated:

       

      <div align="center"><h1>Book Inventory</h1></div>

      <div align="center"></div>

      <div align="center">

        <form id="form1" name="form1" method="post" action="">

          <table width="1210" border="0" cellpadding="2">

            <?php do { ?>

              <tr>

                <td width="115"><?php echo $row_bookinv['labelcode']; ?></td>

                <td width="279"><?php echo $row_bookinv['title']; ?></td>

                <td width="185"><?php echo $row_bookinv['author']; ?></td>

                <td width="103">Description <span id="sprytrigger1"><img src="images/icon_tooltip.gif" width="13" height="13" alt="description" /></span></td>

                <td width="296"><?php echo $row_bookinv['topic']; ?></td>

                <td width="116"><?php echo $row_bookinv['location']; ?></td>

                <td width="72"><img src="images/deletebutton.JPG" width="68" height="28" /></td>

              </tr>

              <?php } while ($row_bookinv = mysql_fetch_assoc($bookinv)); ?>

          </table>

        </form>

      </div>

      <div class="tooltipContent" id="sprytooltip1">TOOLTIPTESTTEXT<?php echo $row_bookinv['description']; ?></div>

      <?php

      mysql_free_result($bookinv);

       

      ?>

      <script type="text/javascript">

      var sprytooltip1 = new Spry.Widget.Tooltip("sprytooltip1", "#sprytrigger1");

      </script>