2013-04-09 74 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表單的頁面。