【问题标题】:Jquery's ThickBox: opening an iframe with GET parametersJquery的ThickBox:使用GET参数打开一个iframe
【发布时间】:2009-06-26 17:42:52
【问题描述】:

我尝试了各种组合,如何在thickbox中打开一个包含get参数的页面?例如:

<a href="http://www.google.com?q=someQuery&TB_iframe=true&height=600&width=600" title"bla" class="thickbox">example 1</a?

另外,在 firefox 扩展中使用thickbox 时有什么特别需要考虑的事情吗?

【问题讨论】:

    标签: jquery get thickbox


    【解决方案1】:

    顺便说一句,如果您查看文档,附加值应该在厚盒参数之前,例如

    ?KeepThis=true&TB_iframe=true&height=400&width=600
    

    【讨论】:

      【解决方案2】:

      看一下thickbox的源码。一开始的选择器是否与您的链接匹配,例如

      tb_init('a.thickbox, area.thickbox, input.thickbox');
      

      以下示例对我来说很好:

      <a class="thickbox" href="/a/b/c/?id=42&TB_iframe=true&width=800">link</a>
      

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-05
      • 2013-06-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多