Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

All of a sudden - my production output is blank? 1

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
US
Gents:

For no reason I can't understand why the display output of my xhtml transitional page is rendered blank. If I do a "view source' the code page looks totally fine. I've cleared my cache, retried, ran the program and the page through validation which goes just fine.

Just for clarification, here is my <head> section to see if there is any format errors. My reference docs show it OK.

<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<title>xxxxxxxxxxxxxxxxxxxxx</title>
<script type=\"text/javascript\" src=\"xxxx.js\" />
<style media=\"all\" type=\"text/css\">@import url(xxxx.css);</style>
</head>

Also, I get NO errors on the php program.

Anyone have any idea what might be causing this page to NOT be seen? It seems that all the other pages from that server are just fine so I've got to believe its a coding error with this module.

Thanks all.[sadeyes]
 
I hope those backslashes don't appear in your final rendered code. Can you show us the code that view source produces? Also, the code you are showing us is only for the head element, which is (apart from the title tag being displayed in the browser title bar) not a visually rendered element.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Understand! Below is the code delivered to the browser and captured using "view source".

This happens on ALL browsers and there are no error messages on client or server that I can see.

<html xmlns="
<!-- *********************************************************************** -->

<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>XXXXXXXXXXXXXXXXXX</title>
<script type="text/javascript" src="xxx0.js">
<style media="all" type="text/css">@import url(xxx0.css);</style>
</head>
<!-- *********************************************************************** -->
<body>
<!-- *********************************************************************** -->
<!-- Page Heading Section -->
<div class="heading">
<span class="S1">XXXXXXXXXXXXXXXXXX</span>
<span class="S2">&nbsp;-&nbsp;site administration</span>
<br />
</div>
<!-- End of Page Heading Section -->
<!-- *********************************************************************** -->

<!-- *********************************************************************** -->
<!-- Start of Tabbed Navigation Menu Section -->
<p align="center">
<img src="pix/m1b1off.png" border="0" hspace="0" alt="tab1" />
<img src="pix/m1b2off.png" border="0" hspace="0" alt="tab2" />
<img src="pix/m1b3off.png" border="0" hspace="0" alt="tab3" />
<img src="pix/m1b4off.png" border="0" hspace="0" alt="tab4" />
<img src="pix/m1b5off.png" border="0" hspace="0" alt="tab5" />
<img src="pix/m1b6off.png" border="0" hspace="0" alt="tab6" />
</p>
<!-- End of Tabbed Navigation Menu Section -->
<!-- *********************************************************************** -->

<!-- Main Content Section -->
<div class="Page_Content_10">
<!-- Prompt Section -->
<div class="prompt">
<fieldset><legend>Please login</legend>
<form class="login" name="login" action="xxx0a.php?s=1" method="post">
<b>Username:</b><br />
<input name="userName" type="text" /><br />
<b>Password:</b><br />
<input name="passWord" type="password" /><br />
<input type="submit" value="login to access system" /><br /><br />
<span class="eMsg"></span>
</form>
</fieldset>
</div>
<!-- End of Main Content Section -->
<!-- *********************************************************************** -->
</div>

<!-- Page Footing Section -->
<div class="Footer">
Copyright &copy; 2006&nbsp;-&nbsp;Xxxxx
<img src="pix/pr1_logo.jpg" border="0" height="25" width="25" align="middle" alt="Xxxxx Xxxxx logo" />
Xxxxx, LLC - all rights reserved
</div>
<!-- End of Page Footing Section -->
<!-- *********************************************************************** -->
</body>
</html>
</head><body></body></html>
 
Look at the malformed end of your html. You close html (</html>) expecting to finish with the file, but then you add a closing head element (browser might think all up to this point was head and ignore it), open another body, close it off and close off the html. Honestly, I think most browsers will only render one body and they will choose the one that appears later in the code. That is the one that has nothing in it, thus all browsers are correct in showing you blank output.

Correct your end of file and you should be good.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
change
Code:
<script type="text/javascript" src="xxx0.js">
to
Code:
<script type="text/javascript" src="xxx0.js" />

-----------------------------------------
I cannot be bought. Find leasing information at
 
Thanks - Both of the suggestions were already in the code (???) I've done the capture again and here is the output:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"<html xmlns="<!-- *********************************************************************** -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Xxxx Xxxxxxx Xxxxx</title>
<script type="text/javascript" src="xxx0.js" />
<style media="all" type="text/css">@import url(xxx0.css);</style>
</head>
<!-- *********************************************************************** -->
<body>
<!-- *********************************************************************** -->
<!-- Page Heading Section -->
<div class="heading">
<span class="S1">Xxxx Xxxxxxx Xxxxx</span>
<span class="S2">&nbsp;-&nbsp;site administration</span>
<br />
</div>
<!-- End of Page Heading Section -->
<!-- *********************************************************************** -->

<!-- *********************************************************************** -->
<!-- Start of Tabbed Navigation Menu Section -->
<p align="center">
<img src="pix/m1b1off.png" border="0" hspace="0" alt="tab1" />
<img src="pix/m1b2off.png" border="0" hspace="0" alt="tab2" />
<img src="pix/m1b3off.png" border="0" hspace="0" alt="tab3" />
<img src="pix/m1b4off.png" border="0" hspace="0" alt="tab4" />
<img src="pix/m1b5off.png" border="0" hspace="0" alt="tab5" />
<img src="pix/m1b6off.png" border="0" hspace="0" alt="tab6" />
</p>
<!-- End of Tabbed Navigation Menu Section -->
<!-- *********************************************************************** -->

<!-- Main Content Section -->
<div class="Page_Content_10">
<!-- Prompt Section -->
<div class="prompt">
<fieldset><legend>Please login</legend>
<form class="login" name="login" action="xxx0a.php?s=1" method="post">
<b>Username:</b><br />
<input name="userName" type="text" /><br />
<b>Password:</b><br />
<input name="passWord" type="password" /><br />
<input type="submit" value="login to access system" /><br /><br />
<span class="eMsg"></span>
</form>
</fieldset>
</div>
<!-- End of Main Content Section -->
<!-- *********************************************************************** -->
</div>

<!-- Page Footing Section -->
<div class="Footer">
Copyright &copy; 2006&nbsp;-&nbsp;Xxxxx
<img src="pix/pr1_logo.jpg" border="0" height="25" width="25" align="middle" alt="Xxxxx Xxxxx logo" />
Xxxxx, LLC - all rights reserved
</div>
<!-- End of Page Footing Section -->
<!-- *********************************************************************** -->
</body>
</html>

Even if I try to open this file with any browser from any of my systems it opens fine, no errors, states Done and its a BLANK screen.

Anyone have any other ideas? I'm very stumped.
 
jaxtell was correct in noticing your non-closed script tag (which means that all your page was parsed as a bunch of erroneous javascript), however you cannot close the script tag with a shorthand. You need to add closing script tag. So if you change your script line to read:
Code:
<script type="text/javascript" src="xxx0.js"></script>
All should work.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
OMG! It was THAT simple.

Thank you all for your kind responses. Trying to be syntactically correct and closing all my single line statements with the "/>" was the cause.

Thanks a million again all.

Bob
 
I have to disagree Vragabond. At least validator.w3.org doesn't complain about shorthand script tag. This validated

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Xxxx Xxxxxxx Xxxxx</title>
        <script type="text/javascript" src="xxx0.js" />
        <style media="all" type="text/css">@import url(xxx0.css);</style>
</head>
<body>
</body>
</html>

-----------------------------------------
I cannot be bought. Find leasing information at
 
jaxtell, I accept that the syntax may be valid (although reading this post might suggest otherwise), but that does not matter much, when browsers ignore all content if the closing tag is not specifically present (and minimized form is used).

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top