moycs777 / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

jquery easytabs / gallerific script conflict #314

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
http://gogostyle.it/prodotti_tabs.php?categoria=tenda&style=Classic%20STYLE

Can you tell me why tabs with sizes (140x280. 60x240 etc) freeze after a while?
The error doesn't start right away, but only after interacting with the slider 
on top and with the sizes tabs. Please click on several items and the tabs 
until you notice you cant navigate within the tabs section. 

Especially when you select the product for the top row slider.

 <div id="tab-container" class='tab-container'>
     <ul class='etabs'>

    <!-- LARGE TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbs) && $totalRows_thumbs > 0)     { ?>

        <li class='tab'><a href="#large"><?php echo substr($row_thumbs['Sottocategoria'], 4, 7) . " cm"; ?></a></li>

    <?php } ?> 

    <!-- MEDIUM TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbsM) && $totalRows_thumbsM > 0)     { ?>

       <li class='tab'><a href="#medium"><?php echo substr($row_thumbsM['Sottocategoria'], 4, 6) . " cm"; ?></a></li>

    <?php } ?> 

    <!-- SMALL TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbsS) && $totalRows_thumbsS > 0)     { ?>

       <li class='tab'><a href="#small"><?php echo substr($row_thumbsS['Sottocategoria'], 4, 6) . " cm"; ?></a></li>

    <?php } ?> 

    <!-- XL TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbsXL) && $totalRows_thumbsXL > 0)     { ?>

        <li class='tab'><a href="#XL"><?php echo substr($row_thumbsXL['Sottocategoria'], 5, 7) . " cm"; ?></a></li>

    <?php } ?> 

    <!-- XXL TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbsXXL) && $totalRows_thumbsXXL > 0)     { ?>

        <li class='tab'><a href="#XXL"><?php echo substr($row_thumbsXXL['Sottocategoria'], 6, 7) . " cm"; ?></a></li>

    <?php } ?> 

    <!-- XM TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbsXM) && $totalRows_thumbsXM > 0)     { ?>

        <li class='tab'><a href="#XM"><?php echo substr($row_thumbsXM['Sottocategoria'], 5, 7) . " cm"; ?></a></li>

    <?php } ?> 

    <!-- XS TAB -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbsXS) && $totalRows_thumbsXS > 0)     { ?>

        <li class='tab'><a href="#XS"><?php echo substr($row_thumbsXS['Sottocategoria'], 5, 7) . " cm"; ?></a></li>

    <?php } ?> 

     </ul>
     <div class='panel-container'>

    <!-- LARGE -------------------------------------------------------------------------> 

    <?php     if (isset($totalRows_thumbs) && $totalRows_thumbs > 0)     { ?>

    <div id="large">

    <?php
    // WA eCart AddToCart
    if (isset($_POST["eCart1_1_ATC"]) || isset($_POST["eCart1_1_ATC_x"]))     {
      $ATC_itemID = $_POST["eCart1_1_ID_Add"];
      $ATC_AddIfIn = 3;
      $ATC_RedirectAfter = "carrello.php";
      $ATC_RedirectIfIn  = "";
      if (isset($totalRows_thumbs) && $totalRows_thumbs > 0)     {
        $row_thumbs = WAEC_findRecordMySQL($thumbs, "Cod.", $ATC_itemID);
        if ($row_thumbs)     {
          $ATC_itemName = "".$row_thumbs['Cod.']  ."";// column binding
          $ATC_itemDescription = "".$row_thumbs['Descrizione']  ."";// column binding
          $ATC_itemThumbnail = "".$row_thumbs['Immagine']  ."";// column binding
          $ATC_itemWeight = floatval("0");// column binding
          $ATC_itemQuantity = "".$_POST["eCart1_1_Quantity_Add"]  ."";// column binding
          $ATC_itemPrice = floatval("".$row_thumbs['Listino 9']  ."");// column binding
          mysql_data_seek($thumbs, 0);
          $row_thumbs = mysql_fetch_assoc($thumbs);
        }
      }
      $ATC_itemQuantity = floatval($ATC_itemQuantity);
      if (is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0)     {
        $eCart1->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice);
        if ($ATC_RedirectAfter != "" && $eCart1->redirStr == "")     {
          $eCart1->redirStr = $ATC_RedirectAfter;
        }
        if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "")  {
          $_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
        }
        else  {
          $_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];
        }
      }
    }
    ?>

    <?php if ($eCart1->redirStr != ""){header("Location: ".$eCart1->redirStr);}?>

     <script type="text/javascript">
     var $jL = jQuery.noConflict(); 
        $jL(document).ready( function() {
          $jL(document).ready(function (){ $jL("#tab-container").easytabs(); });

        });
      </script>

    <div>

    <table >
    <tr>
      <?php
    $thumbs_endRow = 0;
    $thumbs_columns = 4; // number of columns
    $thumbs_hloopRow1 = 0; // first row flag
    do {
      if($thumbs_endRow == 0  && $thumbs_hloopRow1++ != 0) echo "<tr>";
     ?>
      <td><!-- table with product colors thumbs -->
        <table border="0">

          <!-- Codice sopra thumbnail -->
          <div>
          <b>
          <?php echo $row_thumbs['Cod.'];  ?>
          </b>
          </div>

          <!-- Thumbnail -->
          <div>
          <p class="cropcolorthumbs"> 
          <a href="images/Prod/<?php echo $row_thumbs['Immagine']; ?>" title="<?php echo $row_thumbs['Descrizione']; ?>" class="bump" rel="900-700"> <img src="images/thumbs2/<?php echo $row_thumbs['Immagine']; ?>" width ="128"  onerror="this.src = 'catalogo/fotonondisponibile.jpg'"/></a>
          </p>
          </div>

          <!-- Colore -->
          <div style="float: left;" class="image-desc-colore">
          <?php if(!empty($row_thumbs['Internet']))  
          {echo  $row_thumbs['Internet'];} 
          else { echo "&nbsp;";}            
          ?>
          </div>

          <!-- Prezzo -->
          <div style="float:right; padding:0px 20px 0px 10px; font-size: 14px;">
          <?php if($row_thumbs['Listino 9'] != "0.00") 
            {echo "€ " . $row_thumbs['Listino 9'];} 

                else { echo "&nbsp;";}     ?>       

          </div>     

    <!-- Bottone ACQUISTA -->

      <?php if($row_thumbs['Listino 9'] != "0.00") { ?> 

         <div style='padding: 10px 0px 10px 0px;'>    
          <form name='eCart1_1_ATC_<?php echo $row_thumbs['Cod.']; ?>' method='POST' action='<?php echo $_SERVER['PHP_SELF']; ?><?php echo (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != '')?'?'.$_SERVER['QUERY_STRING']:''; ?>'>
          <input type='hidden' name='eCart1_1_ID_Add' value='<?php echo $row_thumbs['Cod.']; ?>' >
          <input type='hidden' name='eCart1_1_Quantity_Add' value='1' size='2' >
          <input type='image' src='images/acquista.png' width='95'  border='0' class='eC_ImageButton' value='Aggiungi al carrello' name='eCart1_1_ATC'></form>     
          </div>

      <?php } 

      else { ?> <div style='padding: 10px 0px 10px 0px;'><img src="images/transparent.png" width="95"  /> </div><?php } 

      ?>    

        </table>      <!-- End table with product colors thumbs --></td>
      <?php  $thumbs_endRow++;
    if($thumbs_endRow >= $thumbs_columns) {
    ?>
    </tr>
    <?php
    $thumbs_endRow = 0;
    }
    } while ($row_thumbs = mysql_fetch_assoc($thumbs));
    if($thumbs_endRow != 0) {
    while ($thumbs_endRow < $thumbs_columns) {
      echo("<td>&nbsp;</td>");
      $thumbs_endRow++;
    }
    echo("</tr>");
    }?>
    </table>

    <!-- end thumbs loop -->            </div>             

    </div>
    <?php } ?>

Original issue reported on code.google.com by eron...@gmail.com on 2 Apr 2013 at 7:30