简体   繁体   English

Colorbox灯箱-“灯箱页”应为完整页面

[英]Colorbox lightbox - should 'lightboxed page' be a complete page

I am having some difficulties with a form that is part of a lightbox page. 我在灯箱页面的一部分表单上遇到了一些困难。 On some versions of IE people are reporting that the form is not sending. 在某些版本的IE中,人们报告该表单未发送。

I am wondering if I have implemented the lightbox correctly. 我想知道我是否正确实施了灯箱。 I am using Colorbox. 我正在使用Colorbox。

Can somone please tell me.. 可以请你告诉我..

  • am I supposed to treat the page that is being lightbox as a complete page? 我应该将灯箱页面视为完整页面吗? ie should it have a doctype, html, body tags? 即它应该有一个doctype,html,body标签吗?
  • should I be referencing jquery on both the parent page AND the lightbox page? 我应该在父页面和灯箱页面上都引用jquery吗?

If the lightbox is a separate page, implimented as an iframe, then it needs to be a complete page, and the form should work, leading to the results of the form loading in the iframe. 如果灯箱是一个单独的页面,隐含为一个iframe,则它需要是一个完整的页面,并且表单应该可以工作,从而导致将表单加载到iframe中的结果。

You don't need jQuery on a page because it is displayed in an iframe, but you may need it for other reasons (form validation, for example). 您不需要页面上的jQuery,因为它显示在iframe中,但是出于其他原因(例如,表单验证),您可能需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM