【问题标题】:MachForm 3.3 + prettyPhotoMachForm 3.3 + 漂亮照片
【发布时间】:2012-08-25 06:01:33
【问题描述】:

我的网站上运行着 prettyPhoto 和 MachForm。两者都可以单独工作。我想要做的是在 prettyPhoto 的弹出窗口中运行 MachForm ......它工作正常,除非我的 machform 有 3 页。因此,当用户在prettyPhoto 中填写machform 的第1 页并单击next 以前进到表单的下一页时,而不是在prettyphoto 中加载machform 的第2 页,而是加载到自己的页面上。

如何解决这个问题,以便 machform 的第 2 页和第 3 页仅在 prettyPhoto 中加载?

<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto();
  });
</script>

<li><a href="/contact?q=prettyphoto&iframe=true&width=50%&height=87%" rel="prettyPhoto[iframe]">General Inquiries</a></li>

/contact 页面是 machform。

【问题讨论】:

    标签: forms iframe prettyphoto


    【解决方案1】:

    使用模态! prettyPhoto 非常适合照片,但它对于表单来说很糟糕,即使它们做得正确,即使是基本的 html 表单也太麻烦了。

    我使用引导程序中包含的模式。它对我很有用。

    http://twitter.github.com/bootstrap/

    也使用 iframe 嵌入而不是 js 嵌入。使用 js 嵌入我遇到了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-30
      • 1970-01-01
      相关资源
      最近更新 更多