473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

iframe content is not visible in firefox

2
hello,

I have the code:

<iframe onresize="reSize()" id="iframeResult" style="width: 100%" frameborder="no" width="100%" runat="server"></iframe>

and javascript functions on the page:

function SimpleSearch()
{
divResult.style.display='none';
divSearching.style.display='';
window.top.document.SearchComplete=true;
WaitSearch();
iframeResult.document.location='result.aspx?s=' + document.getElementById('textSearch').value;
}

function WaitSearch()
{
var myInterval = window.setInterval(function (a,b) {
if (window.top.document.SearchComplete)
{
EndSearch();
clearInterval(myInterval);
}
},300);
}

function EndSearch()
{
divSearching.style.display='none';
divResult.style.display='';
}

Execution starts from SimpleSearch function. So, this works in IE but doesn't in FF. After all the code is executed iframe contains nothing on the page. At the same time IE shows search results.

I will be very grateful for your ideas.

Thanks,
Vitaly
Jul 8 '07 #1
3 2851
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

Try changing the src instead. Do you get any errors?
Jul 9 '07 #2
Vers
2
Thank you for your answer.

I do not have any errors. After execution of the code ie displays the page in the iframe correctly (to be more precise how it has to be). Firefox shows iframe also, but the content of the iframe is just invisible - iframe contains only the color of background. Furthermore the Page_Load method of the page that is to be displayed in iframe is being invoked.

As you recommended I did try to use src. In this case I have the code working in Firefox (however the size of the iframe is not so good, but that's not a problem) and it does not work in ie. Again no errors here, iframe just has white color (background color is different) without nothing on it.

Thanks in advance for your thoughts.
Jul 9 '07 #3
acoder
16,027 Expert Mod 8TB
See this link on how to change the iframe src. Give the iframe a name to access it as a frame.

You can either access it as an object using getElementById and change the src or as an object using the frames array and change the location.href.
Jul 10 '07 #4

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

Similar topics

9
by: aatcbbtccctc | last post by:
Hi folks I've googled for an answer to this, with no success. Can someone please jump in, and put me out of my misery! (I'm sure it's quite simple) I have an invisible IFRAME, and a visible...
14
by: Aaron Gray | last post by:
Hi, I want to access the properties of an IFrame but seem unable to get access to the IFrames document body. <html> <body> <iframe src="test.html" id="IFrame"></iframe> </body>
1
by: sam | last post by:
Hi all, Hope some expert can help me resolve this. I am using the following code to resize an iframe according to the content in it so that the iframe does not use its scroll bar and uses the...
1
by: brussel | last post by:
I'm trying to copy information in one iframe to another iframe with javascript. I am using firefox and information from my local domain so there are no security issues. However I'm just not getting...
3
by: visu | last post by:
Hi , I need a solution for my problem with IFRAME in firefox. The problem is that i ve to make the IFRAME to increase in its height to displays its whole content dynamically .i ve set...
3
by: Asterbing | last post by:
I want to know the length in pixels of a document embedded in a iframe. The way I go seems to work under IE but not under Firefox (about other browsers I'll see later). Here is my page for...
1
by: Sura | last post by:
Hi I have a flash interactive window which has html links and this appears on an html page. This window can be moved with the mouse on the html page. The html page has an iFrame too. When the...
4
by: avdbrink | last post by:
I'm building an application wich should be used by other websites inside an iFrame. My app stores some sessionvariables, but sometimes in IE (6 and 7) IIS seems to restart the session on each...
3
by: Jills | last post by:
Hi All, Does anyone have any idea about how can we resize an IFRAME dynamically according to its content from another domain? I want to increase the height according to the page that is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.