2013-04-09 70 views
1
不工作

我更新了信息,所以你可以得到一个更好的理解:当用户提交表单在IE中它似乎并没有发布IFRAME用PHP的形式在IE

我有一个PHP形式的iframe数据。它适用于Firefox和Chrome,但不适用于IE 7,8和10.

当我们在IE,Firefox,Chrome和Safari上的服务器上测试iframe php表单时,它正常工作,但是当客户端上传时代码到他们的服务器并测试它不适用于他们在IE上。奇怪的是我可以在他们的服务器上测试iframe php表单,它可以在所有使用Windows 7和XP的浏览器上正常工作。客户端在Windows 7和XP上测试IE7,8,10中的iframe php代码。

要知道一件更重要的事情。 iframe html页面仍然在我们的服务器上,因为客户端不使用他们的服务器上的PHP。

这里是iframe标记

<iframe id="iframe" frameborder="0" src="FullURL/reportBuilderForm.html"></iframe> 

下面是IFRAME代码:

<!doctype html> 
<!--[if IE 7]><html class="ie7" lang="en"><![endif]--> 
<!--[if IE 8]><html class="ie8" lang="en"><![endif]--> 
<!--[if gt IE 8]><!--><html lang="en"><!--<![endif]--> 
<link rel="stylesheet" href="styles.css" type="text/css" media="screen" /> 
<head> 
<meta charset="utf-8" /> 
<title>Website</title> 
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> 
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
</head> 
<body id="reportForm"> 
<div class="row"> 
    <form onsubmit="" name="report_form" id="report_form" action="generatePDF.php" method="POST" target="_blank"> 

    <div class="sixcol"> 
     <label class="blue"> 
      <input type="checkbox" name="leadership" id="leadership" class="noMargin"/> 
      Leadership &mdash; Chairman's Messages</label> 
     <br> 
     <br> 
     <label class="blue"> 
      <input type="checkbox" name="company" id="company" class="noMargin"/> 
      Company</label> 
     <br> 
     <br> 
     <label class="blue"> 
      <input type="checkbox" name="performance" id="performance" class="noMargin"/> 
      Performance</label> 
     <br> 
     <br> 
     <label class="blue"> 
      <input type="checkbox" name="solutions" id="solutions" class="noMargin"/> 
      Solutions</label> 
     <br> 
     <br> 
    </div> 
    <div class="sixcol last"> 
     <label class="blue"> 
      <input type="checkbox" name="relationships" id="relationships" class="noMargin"/> 
      Relationships</label> 
     <br> 
     <br> 
     <label class="blue"> 
      <input type="checkbox" name="culture" id="culture" class="noMargin"/> 
      Culture</label> 
     <br> 
     <br> 
     <label class="blue"> 
      <input type="checkbox" name="responsibility" id="responsibility" class="noMargin"/> 
      Responsibility</label> 
     <br> 
     <br> 
     <label class="blue"> 
      <input type="checkbox" name="leadershipBoard" id="leadershipBoard" class="noMargin"/> 
      Leadership &mdash; Board &amp; Sr. Management</label> 
     <br> 
     <br> 
    </div> 
    <div class="clear"></div> 
    <hr /> 
    <input name="generateReportBtn" class="generateBtn" type="submit" tabindex="4" value="generate PDF" id="submit"/> 
    </form> 
</div> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script> 
</body> 
</html> 
+6

一个不会简单地创建一个可用于Internet Explorer的网站 – 2013-04-09 18:03:11

+1

一个不会简单地创建一个暗示Internet Explorer工作,曾经工作过或将“工作”的句子。 – 2013-04-09 18:25:32

+0

大声笑。很好的一个人。 – 2013-04-09 18:31:03

回答

0

感谢您的意见,但我们最终做了不同的解决方案。我们决定在我们的服务器上托管带有iframe和php表单的页面。