LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-01-2007, 05:24 AM   #1
Balakrishnan84
Member
 
Registered: Feb 2007
Location: Bangalore, India
Distribution: Fedore Core 6
Posts: 41

Rep: Reputation: 15
Problem with iframe in Mozilla and Firefox !


Hello All,
I have a cgi which generates a html page with javascript menus and an iframe. Each of te menu item targets a cgi in that iframe. I have an user login cgi which performs validation and loads the index cgi which I described above. So by default, I have used some page for <iframe> by specifying "src" attribute. So when user selects a menu this page will get changed. The problem is, the default <iframe src="anypage"> is not loading sometimes...For example after some continuous 10 logins... I thought this problem is regarding browser cache....so I disabled both disk and memory cache of firefox. But still it is not working sometimes. Please let me know if you have a solution for this issue.
Thanks and Regards,
Balakrishnan
 
Old 08-01-2007, 06:03 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
The URI referenced by the 'src' attribute of the IFRAME: is it a static page, a dynamically generated disk file, or a page dynamically generated by a CGI? If I understand you correctly, I think it is the third choice. If so, it seems possible to me that while the page is being read in one browser, a concurrent hit on the same URI is causing the page to be regenerated from scratch. In so doing, it must first delete the original, which looks like an empty page on the other browser. I'm more or less spitballing without confirmation of the nature of your system. Make sense?

--- rod.
 
Old 08-03-2007, 05:31 AM   #3
Balakrishnan84
Member
 
Registered: Feb 2007
Location: Bangalore, India
Distribution: Fedore Core 6
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks. I get your point. As you guessed it is from a CGI. But I tested this with only one browser access. It still seems to occur . Even I replaced my IFRAME src to some local html page and even to google.com. It still shows blank screen some times. Is there any way to control it through Apache settings or even through my code Please let me know if you have some solution for this.
If you need any technical information...on this issue. Please let me know.

Last edited by Balakrishnan84; 08-03-2007 at 05:34 AM.
 
Old 08-03-2007, 09:24 AM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
If the content of the IFRAME fails to load, even when the content URI is a page generated offsite, then it must not be anything to do with your server. It must be either a browser bug (try different browsers; Iframes are not a strict standard HTML element), or perhaps your page is not being generated with properly formed HTML. Is your CGI using a standard, well debugged library to generate the HTML, or are you generating it with print statements and literal strings? Have you used an HTML validator to test your page? There are a few limitations on the format of the Iframe content; check a good reference on this, particularly with respect to nesting of block-level elements.
--- rod.
 
Old 08-05-2007, 11:22 PM   #5
Balakrishnan84
Member
 
Registered: Feb 2007
Location: Bangalore, India
Distribution: Fedore Core 6
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks for your suggestions...
I ran Firebug plugin with Firefox to analyze my code but no bug found. yes.I use print statements from CGI to generate html...Let me run any other inspector and find whether my code has any major flaw or not...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mozilla Thunderbird to Find New Home as Mozilla Foundation Focuses on Mozilla Firefox LXer Syndicated Linux News 0 07-27-2007 09:16 AM
Mozilla FireFox problem? bastjan Linux - Software 1 06-06-2007 05:03 AM
problem with mozilla/firefox gordonbrown63 Linux - Software 0 12-17-2004 05:55 PM
Serious Problem with Mozilla Firefox Mrrrr. Nice Guy Linux - Software 17 12-01-2004 06:33 PM
I have a problem with Mozilla Firefox RJARRRPCGP Linux - Newbie 7 11-20-2004 06:58 PM


All times are GMT -5. The time now is 05:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration