Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 6th, 2007, 07:37 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default <table> not displaying because of <iframe>

I have the following code in one of my pages, I have used the footer.php code in many other of my scripts and it works fine. However, this script is the only one that uses an IFRAME. Is there a reason the "footer.php" script is not being shown?

Code:
<?php 
include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/dbconn.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>AyrshireMinis.com - crmpicco</TITLE>
<script language="JavaScript" type="text/javascript" src="js/general.js"></script>
<link rel="stylesheet" type="text/css" href="/mini/inc/style.css" />
<link rel="shortcut icon" href="/favicon.ico" />
</HEAD>
<BODY>

<?php 
include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/general.php");
include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/header.php");
?>

<table class="main_table" border="0" cellpadding="5" cellspacing="5">
  <tbody>
    <tr>
      <td>
          <table class="sec_table" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td valign="top" height="1300">
                    <iframe frameborder="0" border="0" width="100%" height="100%" src="/mini/phpbb2/index.php" scrolling="no">
                </td>
              </tr>
            </tbody>
          </table>
      </td>
    </tr>
  </tbody>
</table>
<table align="center">
    <tr>
      <td width="100%" height="20">
      <center>
        <?php include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/footer.php"); ?>
      </center>
      </td>
    </tr>
</table>
</BODY>
</HTML>
Cheers, Picco


www.crmpicco.co.uk
www.ie7.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
  #2 (permalink)  
Old October 6th, 2007, 08:15 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I am not a PHP guy but there is no reason, as far as the HTML is concerned, that your IFRAME is not showing.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Beginning Visual C# 2008
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========
  #3 (permalink)  
Old October 6th, 2007, 10:43 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

it's quite basic, that's what I was unsure why it wasn't showing? I'll try just changing it to a basic table and not a PHP include and see if that helps any.

www.crmpicco.co.uk
www.ie7.com
  #4 (permalink)  
Old October 6th, 2007, 12:21 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Well are you sure the IFRAME does not appear? Have you set the Frameborder property to see if its rendered to your page? What potentially could be happening is that your iframe is rendering but the iframe src could be the page that doesnt render. Not sure of your specific secnario but it might be worth a shot.

hth,

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Beginning Visual C# 2008
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========
  #5 (permalink)  
Old October 6th, 2007, 12:42 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think he said the iframe appears fine, but the footer doesn't.....

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #6 (permalink)  
Old October 6th, 2007, 12:44 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Ahhh, thanks Imar I mis-read his post. In any event I have used the same functionality for one of my asp.net scripts and it works fine since the IFRAME itself makes another request to the server and thus processes my script. Don't sounds kinda strange to me.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Beginning Visual C# 2008
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========
  #7 (permalink)  
Old October 6th, 2007, 01:02 PM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

Hi guys, yeah the footer doesn't appear the IFRAME is fine. It shows fine, but I can't seem to write anything below that point in the code. Tried this without anything shown:

Code:
<?php 
include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/dbconn.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>AyrshireMinis.com - crmpicco</TITLE>
<script language="JavaScript" type="text/javascript" src="js/general.js"></script>
<link rel="stylesheet" type="text/css" href="/mini/inc/style.css" />
<link rel="shortcut icon" href="/favicon.ico" />
</HEAD>
<BODY>

<?php 
include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/general.php");
include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/header.php");
?>

<table class="main_table" border="0" cellpadding="5" cellspacing="5">
  <tbody>
    <tr>
      <td>
          <table class="sec_table" border="0" cellpadding="0" cellspacing="0">
            <tbody>
              <tr>
                <td valign="top" height="1300">
                    <iframe frameborder="0" border="0" width="100%" height="100%" src="/mini/phpbb2/index.php" scrolling="no">
                </td>
              </tr>
            </tbody>
          </table>
      </td>
    </tr>
  </tbody>
</table>
<table><tr><td><h2>TEST!!!!!!!</h2></td></tr></table>
<table align="center">
    <tr>
      <td width="100%" height="20">
      <center>
        <?php include($_SERVER["DOCUMENT_ROOT"] . "/mini/inc/footer.php"); ?>
      </center>
      </td>
    </tr>
</table>
</BODY>
</HTML>


www.crmpicco.co.uk
www.ie7.com
  #8 (permalink)  
Old October 6th, 2007, 02:04 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And did you try it without the iframe to see if the footer is the problem or the iframe?

It looks like your disability to do some self investigation and debugging that got you famous here a few years ago hasn't really improved.... ;)

You need to do some HTML debugging to find out the problem. If I were you, I'd start from scratch. Add a few tags, see if it works. Then add the footer and see if that still works. Then add the iframe and find out things break. This gives you a clue that it has something to do with the iframe.
Then step back, look at the HTML tag for the iframe and think a little about how HTML works. You know, with elements that consist of opening and closing tags and such. Then look at the iframe tag again and notice you have a problem.
Then you probably try to add /> only to find out that that doesn't work either (don't know why, BTW). And then finally, you come to the only conclusion possible which leads to solving this problem.

Try the method I described above. If it still doesn't work, let me know and I'll tell you how to fix it.

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
  #9 (permalink)  
Old October 6th, 2007, 02:19 PM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

I tried taking the <IFRAME> out before and the footer displayed fine. But that doesn't really help me. The IFRAME is going to PHPBB2's index file, which is the forum homepage. The code is too much to post here.

www.crmpicco.co.uk
www.ie7.com
  #10 (permalink)  
Old October 6th, 2007, 02:22 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The code in the file referenced by the iframe isn't the problem at all.
It's the iframe element (or rather, the iframe tag) that's the problem here. Did you look at it? Do you see anything odd?

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004




Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expression to remove <table> </table> tags mathalete CSS Cascading Style Sheets 2 January 23rd, 2006 01:59 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<A><DIV><TABLE></DIV></A> anshul HTML Code Clinic 2 July 17th, 2004 02:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.