Note that there are some explanatory texts on larger screens.

plurals
  1. POConflict jQuery Tabs
    primarykey
    data
    text
    <p>I am using following script for tab slides on my magento store. It looks like it is causing jQuery conflict. I tried using <code>jQuery.noConflict()</code> but it didnt help. </p> <pre><code>&lt;script type="text/javascript"&gt; var current = 0; $('tabs').firstDescendant().className += ' active-tab'; var active_tab = $('tabs').firstDescendant().firstDescendant().firstDescendant(); var motion = false; function move_to(to, el){ if (!motion) { el.parentNode.parentNode.className += ' active-tab'; if (active_tab) { active_tab.parentNode.parentNode.className = 'corner-left-top'; } active_tab = el; move = (current - to)*690; new Effect.Move($('tabber'), { x: move, beforeStart:function(){ motion = true;},afterFinish:function(){motion = false;}}); current = to; } } &lt;/script&gt; </code></pre> <p>Here is the PHP code for the script:</p> <pre><code>&lt;div id="tabs" class="tabs"&gt; &lt;?php $tabs = 0; ?&gt; &lt;?php if ($_description = $this-&gt;getChildHtml('description')): ?&gt; &lt;div id="width-tab" class="corner-left-top"&gt; &lt;div class="corner-right-top" &gt; &lt;div class="border-top" onclick="move_to(&lt;?php echo $tabs; $tabs++;?&gt;, this)"&gt; &lt;h3 style="color:#000;"&gt;&lt;?php echo strtoupper($this-&gt;__('Overview')); ?&gt;&lt;/h3&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php endif;?&gt; &lt;div id="width-tab-2" class="corner-left-top"&gt; &lt;div class="corner-right-top"&gt; &lt;div class="border-top" onclick="move_to(&lt;?php echo $tabs; $tabs++;?&gt;, this)"&gt; &lt;h3 &gt;&lt;?php echo strtoupper($this-&gt;__('Specification')); ?&gt;&lt;/h3&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php if ($_product-&gt;isSaleable() &amp;&amp; $this-&gt;hasOptions()):?&gt; &lt;div id="width-tab-3" class="corner-left-top"&gt; &lt;div class="corner-right-top"&gt; &lt;div class="border-top" onclick="move_to(&lt;?php echo $tabs; $tabs++;?&gt;, this)"&gt; &lt;h3&gt;&lt;?php echo strtoupper($this-&gt;__('Buy')); ?&gt;&lt;/h3&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php endif; ?&gt;&lt;br class="clear-block" /&gt; </code></pre> <p></p> <pre><code>&lt;ul id="tabber"&gt; &lt;li id="container_1" class="tabs-list"&gt;Product Description&lt;/li&gt; &lt;li id="container_2" class="tabs-list"&gt;Product Specifications&lt;/li&gt; &lt;li id="container_3" class="tabs-list"&gt;Add to Cart button&lt;/li&gt; &lt;/ul&gt; </code></pre> <p><strong>Issue:</strong> The id container_3 contains a "Add to Cart" button <code>&lt;button type="button" title="Add to Cart" class="button btn-cart" onclick="productAddToCartForm.submit(this)"&gt;&lt;span&gt;&lt;span&gt;Add to Cart&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;</code> which wont work.</p> <p>Please Any help will be appreciated.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload