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

Guys have a look please.... 2

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
Below the flash and above the navigation on pc there is gap between the two..It should not, nor do I want it to be there..Is not there on a mac..

The navigation is being pulled in by a ssi call..The pages were built with go-live (not by choice) so that is the reason for the additional code being pulled in from the ssi call into the pages..It is just go-lives roll over image script..But there should be no reason why this gap is there, or atleast from what I see..

Anyways the link to the index.shtml is:


the navigation is being pulled from:



logo.gif


carlsatterwhite@orlandomediasolutions.com
 
try placing the two into one table and nest the other tables so you can align and eiliminate the gap.

also, is it normal for the SSI to create a extra body tag? You have two of each body, head. I haven't used SSI all that much but haven't noticed this effect. That may be causing the gap as well ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }

 
No I guess onpnt it is not normal for it to creat an extra body tag, and in this case it did not actually create it.. I had to leave the head and body tag in the navigation.html because go live needs them for the rollover images to work properly..

I will try placing them both in a nested table and see what happens..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
have you considered converting the navigation.html to a .js file so this can be solved. All of the html elements can easily written to the screen in it. just a idea. that extra body tag really seems unordinary and would to me cause problems ---------------------------------------
{ str = "sleep is good for you. sleep gives you the energy you need to function";
ptr = /sleep/gi;Nstr = str.replace(ptr,"coffee");alert(Nstr); }

 
Nope the nested table thing worked fine, thanks alot..

carl
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Hi mate,

Why not just strip the extra body tags etc, and move the code to where it should be?

At present the code on that page is all over the place, extra body tags etc may cause you problems further down the line.

Hope this helps Wullie

- Send your letter to santa!!

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Wullie the code needs to be in pages that the navigation is in, the go live script will not work without the head and body tag there to make the script call function..

I understand what your saying but dont think, well what the hell, it will work your right..If I just add the code to the shtml pages that hold the ssi call..But then if I change the nav script or something, defeats the purpose of the ssi call in the begining, would then have to go in a manually change each page..Or do a global change in go-live to all the site files..

Will think about it this weekend and see what happens monday..

Thanks again all...........
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Hi mate,

It looks to me that you are going the wrong way with SSI.

SSI includes are used to include external files, unlike frames they do not use any extra code.

Take the following:


<html>
<head>
<title>My Title</title>
</head>
<body>
This is my content
</body>
</html>

If you wanted to use SSI on the above code to simplify things, you could break it down to the following:


**Top.html**

<html>
<head>
<title>My Title</title>
</head>
<body>


**Content.html**

This is my content


**Bottom.html**

</body>
</html>

This is a simple example bt it rings true no matter how complex your code gets.

The easiest way to use SSI is to actually generate a single page, then copy parts of it into the external files. In place of the code that you extracted, you add an include call for that code, nothing else.

If you want all your js to be in an external file, then call it from either an external js file or an SSI call, but keep your code intact the whole time.

To change your code so that it is all in the correct place, all you need to do is change a few things about and remove the extra body tags etc.

The code generated by an SSI call should be the exact same as if you called the same code in a static html file, there should be no difference.

But then if I change the nav script or something, defeats the purpose of the ssi call in the begining, would then have to go in a manually change each page..

There is nothing that says that you can only have one SSI call to an external file, just rework it the way the example I posted above and all is well, you then have valid html code.

Hope this helps
Wullie

- Send your letter to santa!!

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Thanks for the detailed example wullie, gives me a true understanding now of the way it should be done..

Will tear it up monday and go at it again..

Carl
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Hi mate,

There is no reason to start it all again, there are just a few easy things to sort out.

Firstly, at the end of your code you have the following:

<td height=&quot;40&quot; width=&quot;680&quot;><td><img src=&quot;images_footer/footer.gif&quot; width=&quot;680&quot; height=&quot;40&quot; border=&quot;0&quot;></td>
</td>


You need to remove the redundant </td> tag.

Then you need to re-organise the rest of the code,


Then you need to strip the code down, take all the pieces that are static between pages and cut them from the source, take that exact code and place in an html file, add the inlcude statment to that file in the exact place that you cut it from. Keep doing this with sections until you are left with the basic code that is different between pages.

After that, you are ready to go and have the easy task when it comes to updating.

Hope this helps Wullie

- Send your letter to santa!!

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Thanks wullie..

Much help.............


Carl
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top