fancybox галерея с голосованием - PullRequest
0 голосов
/ 08 декабря 2011

У меня есть галерея fancybox, которая отлично работает, но когда я отправляю заявку на голосование вместо обработки формы, она переходит к следующему изображению

Скрипт fancybox

$(".fancybox-button").fancybox({
        prevEffect      : 'fade',
        nextEffect      : 'fade',
        closeBtn        : false,
        helpers     : { 
            title   : { type : 'inside' },
            buttons : {}
        }
    });

HTML-страница

<div  class="showContestant"><a class="fancybox-button" rel="fancybox-button" href="viewDetail.php?id=1" title="Fine Gal One">
<img src="images/pix1.jpg" width="100"  /></a></div>
        <div  class="showContestant"><a class="fancybox-button" rel="fancybox-button" href="viewDetail.php?id=4" title="Fine Gal two">
<img src="images/pix4.jpg" width="100"  /></a></div>
        <div  class="showContestant"><a class="fancybox-button" rel="fancybox-button" href="viewDetail.php?id=2" title="Fine asdfasfasf asfasfasfsadf Gal three">
<img src="images/pix2.jpg" width="100"  /></a></div>

Страница PHP называется

<? if (isset($_REQUEST['cid'])) { echo 'posted';} else{?>
<form id="form1" name="form1" method="post" action="">
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td align="center"><img src="images/pix<?=$_REQUEST['id'];?>.jpg" width="400" height="400" /><input name="cid" id="cid" type="hidden" value="<?=$_REQUEST['id'];?>" /></td>
    </tr>
    <tr>
      <td>My Picture Description: i am looking great in my red top!!!<br />
        Vote this Contestant;</td>
    </tr>
    <tr>
      <td><input type="submit" name="Vote" id="Vote" value="Vote Me!!!" /></td>
    </tr>
  </table>
</form>
<? } ?>

1 Ответ

0 голосов
/ 08 декабря 2011

Добавить эту опцию API

arrows: false,
closeClick: false,

.

...