简体   繁体   English

在Internet Explorer中的iframe中未显示模式弹出窗口

[英]Modal Popup Not Displaying inside Iframe in Internet Explorer

I have created a PHP web application using twitter bootstrap and jquery. 我已经使用twitter bootstrap和jquery创建了一个PHP Web应用程序。 This application is inside an iframe on our website here: http://southcommdigital.com/admin/ . 该应用程序位于我们网站上的iframe中: http//southcommdigital.com/admin/ When you click on the login link on the top right, a modal pops up with a login form. 当您单击右上角的登录链接时,会弹出一个带有登录表单的模式。 This works perfectly in Firefox and Chrome, but the modal won't display in Internet Explorer. 这在Firefox和Chrome中完美运行,但是模式不会在Internet Explorer中显示。 Additionally, this WILL work in IE if you browse to the iframe page itself here: http://omgsurvey.com/apps/Dan/index.php . 此外,如果您在以下位置浏览到iframe页面本身,则该方法将在IE中起作用: http : //omgsurvey.com/apps/Dan/index.php Is this a known issue and does anybody know of a workaround for this? 这是一个已知问题吗,有人知道解决方法吗? Thank you for any help you can give me. 谢谢您能给我的任何帮助。

Trigger Link: 触发链接:

<a data-toggle="modal" href="#loginModal">
  <span class="glyphicon glyphicon-log-in"> </span>&nbsp;Login
</a>

Popup code: 弹出代码:

<div class="modal fade text-center" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style="max-width: 400px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h1 class="modal-title">Login</h1>
      </div>
      <form role="form" name="loginformname" method="post" id="loginformname" class="loginformid" enctype="application/x-www-form-urlencoded" action="form_action.php">
        <div class="modal-body">
          <div class="row">
            <div class="col-md-12 text-left">
              <div class="form-group">
                <label for="username" class="control-label">Username</label>
                <div>
                  <input type="text" class="form-control" id="username" name="username" placeholder="">
                </div>
              </div>
              <div class="form-group">
                <label for="password" class="control-label">Password</label>
                <div>
                  <input type="password" class="form-control" id="password" name="password" placeholder="">
                </div>
              </div>
              <input name="action" id="action" value="login" type="hidden">
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
          <input name="submit" id="submit" value="Login" type="submit" class="btn btn-primary">
        </div>
      </form> 
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->      <!-- END LOGIN MODAL  --> 

根据所使用的版本,您可以在IE(F12)中检出控制台,看来您有一些错误可能需要解决。

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

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