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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Footer menu not displaying correctly

Status
Not open for further replies.

3112005

Technical User
Nov 28, 2005
58
US
I must be calling my tags in the wrong order because if I call my table tag (that displays my database info) in the right spot, then the bottom footer menu does not display correctly.

This is the file called out at the bottom of the page in an include file.

If I move my table to display above all my div tags then the footer displays fine, but then I'm left with my table not showing up until about the middle of the page.

Here is the link (as you can see the table is in the correct position, but the footer is not expanding across the bottom of the page)
This link shows you what the footer should look like


Please let me know if anyone can help. Its making me nuts. ;)

Start Code --------------------------------

Code:
<%
set objConn = server.createobject("ADODB.Connection")
objConn.Open strConn

strSQL = "SELECT * FROM JobOpenings " & _
		 "WHERE (WorkLocation IN ('Ft. Rucker AL','HEC','Daleville AL')) " & _
		 "	     AND ExternalyAvailable <> 'No' AND MarkAsDeleted <> 'Yes'" & _
		 "ORDER BY JobCode DESC"

set rsNewsItems = Server.CreateObject("ADODB.Recordset")
	rsNewsItems.Source		= strSQL
	rsNewsItems.ActiveConnection 	= objConn
	rsNewsItems.CursorType		= adOpenForwardOnly
	rsNewsItems.Open		

%>
<html>
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title> Aerospace &amp; Defense Group - A QinetiQ Company</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="style.css">
<style type="text/css" media="all">
<!--
@import url(main.css);
@import url(level_02.css);
-->
</style>

<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="javascript" type="text/javascript" src="dmstatscript.js"></script>
<script>
DMPage();
</script>


</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" link="#333333" onLoad=";Stats()" stats=1 vlink="#666666" alink="#CC0000">       
 
<div id="pagewrapper">

<div id="logotop">
<a href="../index.asp" id="homelink" title=" Aerospace &amp; Defense Group - A QinetiQ Company Home Page">Home Page</a>
</div>

  <div id="navtop"> <a href="../about/index.asp" id="link01" title="About ">About 
    </a> <a href="../capabilities/index.asp" id="link03" title=" Capabilities">Capabilities</a> 
    <a href="../news/index.asp" id="link04" title=" News &amp; Events">News 
    &amp; Events</a> <a href="index.asp" id="link05" title="Careers at " class="active">Careers</a> 
    <a href="../contacts/index.asp" id="link06" title="Contact ">Contacts</a> 
  </div>

<div id="breadcrumbs"><a href="../index.asp">Home</a> &raquo; <a href="index.asp">Careers</a> &raquo; Current Openings 
	» Alabama</div>

<div id="activestage" style="width: 516px; height: 312px">

<h1 id="sectiontitle">Current Openings in Alabama</h1>

<!--BEGINNING OF DEEPMETRIX STATSCRIPT-->
<script language="javascript">
var DMdomain = "";
var DMpage = window.location;
var DMVersion = 86;
var DMsendTo = "//collector.deepmetrix.com/dm.gif?";
var DMsession;
function dmerr(){return true;}window.onerror=dmerr;
var u3k8u6y1j3 = new Date();
if (navigator.userAgent.indexOf('Mac') >= 0 && u3k8u6y1j3.getTimezoneOffset() >= 720){
u3k8u6y1j3.setTime (u3k8u6y1j3.getTime() - 1440*60*1000);}
var u3k8u6y1 = location.protocol+DMsendTo+"v="+DMVersion+"&vst=1";
var u3k8u6 = document.cookie.toString();if(u3k8u6.indexOf("_dmid") == -1)
{DMsession = parseInt( Math.random()*1000000 ) + "_" + u3k8u6y1j3.getTime();
var u3k8 = "";if(DMdomain != ""){u3k8 = "domain="+ DMdomain +";";}
document.cookie = "_dmid=" + DMsession + ";expires=Mon, 31-Dec-2008 00:00:00 GMT;"+u3k8+"path=/;";}
u3k8u6 = document.cookie.toString();if(u3k8u6.indexOf('_dmid') == -1){DMsession = "";}
else{if(u3k8u6.indexOf(';') == -1){u3k8u6 = u3k8u6.replace(/_dm/g, ';_dm');}var u3 = u3k8u6.indexOf("_dmid=") + 6;
var g5b1z7i5z6 = u3k8u6.indexOf(";",u3);if (g5b1z7i5z6 == -1){g5b1z7i5z6 = u3k8u6.length;}
DMsession = unescape(u3k8u6.substring(u3,g5b1z7i5z6));}
u3k8u6y1 += "&id="+DMsession+"&url="+escape(DMpage) + "&ref="+escape(document.referrer)+"&lng=" + 
((!document.all || navigator.userAgent.match('Opera')) ? navigator.language : navigator.userLanguage) + 
"&tz=" + (Math.round(new Date('dec 1, 2002').getTimezoneOffset()/60)*-1);
if(screen){u3k8u6y1 += "&scr=" + escape( screen.width + "x" + screen.height + " " + screen.colorDepth + "bpp" );}
u3k8u6y1 += "&rnd=" + new Date().getTime();if(document.layers){
document.write("<la"+"yer name=\"DMStats\" visibility=hide><img src=\""+u3k8u6y1+"\" height=1 width=1></la"+"yer>");
}else{document.write("<di"+
"v id=\"DMStats\" STYLE=\"position:absolute;visibility:hidden;\"><img src=\""+u3k8u6y1+
"\" height=1 width=1></di"+"v>");}
</script>
<!--END OF DEEPMETRIX STATSCRIPT--> 
 <table width="454" border="0" cellspacing="0" cellpadding="0" height="18">
             <!--DWLayoutTable-->   
               
        
                   <%
Dim rsUserSpec
Dim rsLocSpec
Dim LocName
jobcounter=0
While NOT rsNewsItems.EOF

	strSQL4 = "SELECT OfficeName FROM Offices WHERE LocationName = '" & rsNewsItems("WorkLocation") & "'"
	set rsLocName = Server.CreateObject("ADODB.Recordset")
	rsLocName.Source		= strSQL4
	rsLocName.ActiveConnection 	= objConn
	rsLocName.CursorType		= adOpenForwardOnly
	rsLocName.Open

	Response.Write("<tr>")
	jobcounter=jobcounter+1

	Response.Write("<td class=""bodycopy"" width=""79%"" valign=""top""><B>Position:</B> " & rsNewsItems("PositionTitle") & "<BR>")
	Response.Write("<B>Location:</B> " & rsLocName("OfficeName") & "<BR>")
	'	Response.Write("<B>Description:</B> " & rsNewsItems("PositionDescription") & "<BR>")
	
	Response.Write("<B>For more information:</B> <A HREF=jobcode.asp?id=" & rsNewsItems("JobCode") & ">Click Here</A>" & "<BR>")
	Response.Write("<img src=""../shim.gif"" width=""10"" height=""10""> </td>")
	Response.Write("</tr>")
	Response.Write("<tr bgcolor=""#666666"">")
	Response.Write("<td class=""bodycopy"" width=""79%"" valign=""top""><img src=""../shim.gif"" width=""1"" height=""1""></td>")
	Response.Write("</tr>")
	rsNewsItems.MoveNext
Wend

If jobcounter = 0 Then
	Response.Write ("<font face=arial size=3 color=#b22222>There are currently no job postings available for this location.")
	Response.Write("<BR>")
	Response.Write("Please check back or select a new location.")

End If


set rsNewsItems = Nothing
set rsUserSpec = Nothing
set rsLocSpec = Nothing
objConn.Close
set objConn = Nothing



	'	    <tr> 
        '              <td class="bodycopy" width="79%" valign="top"><b><!--begin dynamic content -->Position:</b> 
        '                STRUCTURAL ENGINEER <br>
        '                <b>Location: </b>HEC <br>
        '                <b>Description: </b>Position requires recent experience 
        '                in classical stress analysis, finite element analysis, 
        '                design and analysis of aircraft structural modifications, 
        '                structural loads analysis of aircraft, strength analysis 
        '                of aircraft airframe, empennage, nacelle and land<br>
        '                <b>Referral #: </b>503<br>
        '                <b>Contact: </b>Send <a href="mailto:rhoades@hsv..com">Rock 
        '                Rhoades </a>an e-mail or call (256) 430-1610 <!--end dynamic content --><br>
        '                <img src="../shim.gif" width="10" height="10"> </td>
        '            </tr>
        '            <tr bgcolor="#666666"> 
        '              <td class="bodycopy" width="79%" valign="top"><img src="../shim.gif" width="1" height="1"></td>
        '            </tr>

%>
                    

</div>
</div>
</div>
</div>
</table>                   


<!-- #include file="footer.html" -->
</body>
</html>
End Code ----------------------------------
 
This looks an awfully lot like javascript. Oh wait...it is javascript. Try here:


[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Disregard that...I see the VBScript sprinkled through there now. Explicit language identifiers are nice. :)

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
I know what you mean about the language identifiers.... I'm working off the guy before me's code. It's been fun trying to figure out whats going on when variables aren't declared and languages aren't specified. ;)
 
When I move this line...

<table width="454" border="0" cellspacing="0" cellpadding="0" height="18">
<!--DWLayoutTable-->

To reside directly below this line...

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" link="#333333" onLoad=";Stats()" stats=1 vlink="#666666" alink="#CC0000">

The footer looks good, but then the table content doesn't show up until about halfway down the page.
 
When I look at the example page that you linked, the only problem I see on the "bad" page is that the grey background and the blue line uner it do not go all the way across the page. That is viewing it with Firefox 1.0.7

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Yes,

That is the only problem. I need to get that grey background and blue line to go all the way across the page.


Thanks.
 
I don't do a whole lot of HTML, so I'm probably not the best person to get advice from, but if I were you I would look at the style sheet. Specifically I would look at the style definition for id "two", "three", and "between".

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
I appreciate your efforts to help, but I don't think it is the style sheet since the footer displays fine depending on where I place my table and since the other page footers display fine since they don't have a table in them.

It must be something with the table.

Thanks anyways.
 
What I ended up having to do is put the footer (page include) in its own table at the bottom, then it worked.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top