473,804 Members | 3,162 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Iframe Not Working in IE, but fine in Firefox

6 New Member
I am trying to implement a customer survey into our webpages. The survey consists of a javascript file which launches an html file in an iframe. When the user meets certain parameters defined in the js file it launches the iframe. This works fine in Firefox and the iframe is launched perfectly. In IE this does not work at all. When the iframe is supposed to be launched the page goes blank. It does not even continue to load the web page and seems to be trying to open the html file, but does not. It does not throw any errors.

In firefox, the webpage loads and the iframe opens the html without a problem. Any ideas why this would happen? I cannot give you a url to see the error as this is in our development environment, but was hoping maybe someone has some experience with an issue like this and can point me in the right direction. Any help is appreciated. thanks.
Jan 5 '08 #1
4 22589
gits
5,390 Recognized Expert Moderator Expert
hi ...

post the code that makes the problem ... so that we may have a closer look at it ...

kind regards
Jan 5 '08 #2
ashkash
6 New Member
Here is the html code that should open up in the iframe.

Expand|Select|Wrap|Line Numbers
  1. <!-- Version : DHTML Trigger 4.0 -->
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. <html lang="en">
  4. <head>
  5. <meta http-equiv=Content-Type content="text/html; charset=utf-8">
  6. <title>Survey Invitation Page</title>
  7. <style type="text/css">
  8. <!--
  9. body, div, table, td {
  10.     font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
  11.     font-size:11px;
  12.     color:#666666;
  13.     background-color:#ffffff;
  14.     margin:0px;
  15. }
  16. .subtitle {
  17.     font-size: 120%;
  18.     color:#000000;
  19.     font-weight:bold;
  20. }
  21. .footnote{
  22.     font-size: 80%;
  23.     font-weight: bold;
  24. }
  25. .OuterTable {
  26.     background: #ffffff;
  27.     border:2px #000000 ridge;
  28.     border-spacing:1px;
  29.     padding:1px;
  30.     width:100%;
  31.     height:100%;
  32. }
  33. .InnerTable {
  34.     border:0px;
  35.     background-color:#ffffff;
  36.     width:100%;
  37. }
  38. -->
  39. </style>
  40. </head>
  41. <body>
  42. <table summary="Outer table for formatting layouts" class="OuterTable">
  43. <tr><td>
  44. <div id="fsrInvite" style="width:100%">
  45.     <table summary="Inner table for formatting layouts">
  46.         <tr>
  47.             <td>
  48.                 <table summary="Inner table for formatting layouts" class="InnerTable">
  49.                     <tr>
  50.                         <td align="right" style="padding: 0px 5px 1px;">
  51.                         <a href="javascript:window.parent.fsr_hideWindow()" title="Clicking this link will close this window." align="right">Close</a>
  52.                         </td>
  53.                     </tr>
  54.                 </table>
  55.             </td>
  56.         </tr>
  57.         <tr>
  58.             <td style="padding: 0px 10px 10px;">
  59.                 <table summary="Inner table for formatting layouts" class="InnerTable">
  60.                     <tr>
  61.                         <td align="left" valign="middle"><img src="sitelogo.gif" alt="Site logo"></td>
  62.                         <td align="right" valign="top"><img src="FSRlogo.gif" alt="ForeSee Results logo"></td>
  63.                     </tr>
  64.                 </table>
  65.             </td>
  66.         </tr>
  67.         <tr>
  68.             <td style="padding: 0px 10px 10px;" align="left" valign="top" width="100%">
  69.                 <span class="subtitle">Thank you for visiting FEMA MIP</span><br><br>
  70.                 You have been selected to take part in a customer satisfaction survey. This survey is conducted by an independent company. <br><br>The feedback obtained from this survey will help us to enhance our website. All results are strictly confidential.
  71.             </td>
  72.         </tr>
  73.         <tr>
  74.             <td>
  75.                 <table summary="Inner table for formatting layouts" class="InnerTable">
  76.                     <tr>
  77.                         <td align="center" style="padding:10px 15px 10px;" valign="middle" width = "50%"><input type="button" class="btn" alt="Clicking continue will launch a customer satisfaction survey in a new browser window." value="Continue" onclick="javascript:window.parent.fsr_hideWindow();javascript:window.parent.Pop();"></td>
  78.                         <!--Remove this line to enable No thanks--
  79.                         <td align="center" style="padding:10px 15px 10px;" valign="middle" width = "50%"><input type="button" class="btn"  alt="Clicking No thanks will close this window." value="No thanks" onclick="javascript:window.parent.fsr_hideWindow()"></td>
  80.                         !--Remove this line to enable No thanks-->
  81.                     </tr>
  82.                     <script type="text/javascript">
  83.                         if (window.parent.fsr_NS8){
  84.                             document.write('<tr><td style="padding:0px;" valign="top" align="center" class="footnote">');
  85.                             document.write('*In Netscape 8+, the survey might open in a separate tab');
  86.                             document.write('</td></tr>');
  87.                         }
  88.                     </script>
  89.                 </table>
  90.             </td>
  91.         </tr>
  92.     </table>
  93. </div>
  94. </td></tr>
  95. </table>
  96. </body>
  97. </html>
And here is the iframe statement in the js file

Expand|Select|Wrap|Line Numbers
  1. <div id="fsr_window" style="position:absolute; left:440px; top:150px; z-index:100; border:0; overflow:hidden; visibility:hidden; filter:revealTrans(Duration=0.5, Transition=23);"><iframe id="cframe" src="/portal51/mapmod/foresee/FSRInvite.html" FrameBorder=0 Scrolling=NO width=400 height=290></iframe></div>
When it tries to launch the iframe the source of the main document only shows the iframe statement above and the screen is blank. This works perfectly in firefox.
Jan 5 '08 #3
chaarmann
785 Recognized Expert Contributor
Here is the html code that should open up in the iframe.

...

And here is the iframe statement in the js file

Expand|Select|Wrap|Line Numbers
  1. <div id="fsr_window" style="position:absolute; left:440px; top:150px; z-index:100; border:0; overflow:hidden; visibility:hidden; filter:revealTrans(Duration=0.5, Transition=23);"><iframe id="cframe" src="/portal51/mapmod/foresee/FSRInvite.html" FrameBorder=0 Scrolling=NO width=400 height=290></iframe></div>
When it tries to launch the iframe the source of the main document only shows the iframe statement above and the screen is blank. This works perfectly in firefox.
You have put your <iFrame> into a <div>, try to delete this surrounding <div>. If it works afterwards, then you know that this DIV is the reason why your page does not display, and you can put it back and modify it until it works.

I have not tried your code, but from my experience, most likely this is the reason. Your DIV uses "overflow:hidde n visibility:hidd en", which hides all the content inside. And the given "filter:revealT rans..." may also behave different in different browsers.
Jan 6 '08 #4
acoder
16,027 Recognized Expert Moderator MVP
I have not tried your code, but from my experience, most likely this is the reason. Your DIV uses "overflow:hidde n visibility:hidd en", which hides all the content inside. And the given "filter:revealT rans..." may also behave different in different browsers.
Yes, that would be the reason. The filters only work in IE.
Jan 7 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1761
by: Velvet | last post by:
I'm using the standard upload component in ASP.NET 1.1 to allow authors to upload manuscripts to our server. This is working fine except for some people using FireFox. The problem is, the upload is working for MY fireFox browser so I'm unable to troubleshoot and step through the code to see what is really going on. The is one customer who has the same browser version as me and another who has an older version. I have told these...
1
5383
by: mike888 | last post by:
I want to create dynamic iframe content like below but in Firefox <iframe width="100%" height="100" src="#"></iframe> <script language="JavaScript"><!-- document.frames.document.open(); document.frames.document.write('THis is the dynamic text for iframe above'); document.frames.document.close();
5
10110
by: atulvp | last post by:
Hi all, I have written a javascript code which changes the combo_2 options on runtime. It is working fine on IE but not working on Firefox. Please help me solve this problem. My code is as follows: function changeMe(str) { if(str.value == "se") { while(document.frm.combo2.length 0) {
1
1846
by: web20tester | last post by:
Hi all, I am new to javascript. I have this script working fine in IE but cannot work in firefox. Really appreciate on any guidance. search0.js function Search(str) { var textD=parent.textFrame.document; var SearchRange = textD.body.createTextRange();
33
5570
by: buss123 | last post by:
Hi all, combo box script code was working in IE perfectly with all modes but OnChange event was not working in FireFox(editable mode, if we select valuese that combo box values r not dislaying if enter the data the it is inserting properly) javascript code follows pls help me to solve this problem function fnKeyDownHandler(getdropdown, e) { fnSanityCheck(getdropdown);
5
6597
by: CoolForU | last post by:
this is my code and i call this code from code behinde file on page load like this useragree.Attributes.Add("onclick", "CheckSelection();") this is working fine with IE but not working with fire fox. in firefox i got error : Error: CheckSelection is not defined
5
4896
by: suresh_nsnguys | last post by:
Hi, I am facing one problem in embed flash object.i am displaying the flash (.swf file) using embed tag<embed> in IE.i want to display the alert box when user click the mouse over the flash .i am able to display the alert box only when user double click the flash .but i want alert box need to display when single mouse click over flash. my code: <script> function kiosk(){ // fn will be called when user click mouse
14
7200
by: sourav08 | last post by:
Hi, I have validate a text field with onchange event which throw error message, if not satisfied the condition and set the mouse cursor on the same field using document.focus(). It is working fine in IE, but when used in Firefox, the mouse cursor is moving to the next text field. Please let me know the possible solution for the above problem.
5
2248
by: krishna.tunikipati | last post by:
Hi I have updated my firefox browser from 2.0 to 3.0 My AJAX functionality is not working in firefox3.0 But in firefox2.0 it worked fine. and working fine in all IE versions Plz give me a solution ASAP
2
3066
by: sateeshchandrasanga | last post by:
Hi All, My HTML code is working fine in Firefox.But its not displaying any thing in IE.Can you help me in this problem.And in Google crown its displaying but not properly. contactus.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.