how to disable the lightbox to close after clicking on a submit button?

Posted by Mahmoud on Stack Overflow See other posts from Stack Overflow or by Mahmoud
Published on 2010-05-28T00:33:12Z Indexed on 2010/05/28 1:31 UTC
Read the original article Hit count: 380

Filed under:
|

Hey there

i have a lightbox that contains a button images where once the user/visitor clicks on that images its adds the item into cart.

what i am trying to do is that once the button is clicked it adds the item without close the ifram is it possible

i am using http://www.huddletogether.com/projects/lightbox2/

the cart that i used is http://conceptlogic.com/jcart/

code used:

echo"<div class='virtualpage hidepiece'><a href='gal/".$row['pro_image']."' rel='lightbox[roadtrip]' title='&lt;form class=&quot;jcart&quot; method=&quot;post&quot;&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;".$row['pro_num']."&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;name&quot; value=&quot;".$row['pro_name']."&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;price&quot; value=&quot;".$row['pro_price']."&quot; /&gt;

 &lt;input type=&quot;hidden&quot;name=&quot;qty&quot; size = &quot;1&quot; value=&quot;1&quot; /&gt;
 <br /> 

 &lt;input type=&quot;image&quot; value=&quot;Submit&quot; name=&quot;addto&quot; src = &quot;images/add.png&quot;  /&gt;
&lt;/form&gt; ".$row['pro_name']." :  ".$row['pro_mini_des']."' style='color:#000'><img title = ' ' src='thumb/".$row['pro_thumb']."' />
 </a></div> ";  

© Stack Overflow or respective owner

Related posts about php

Related posts about lightbox2