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!

Include Header File 1

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Hello EveryOne,

I'm new to FP so please take it easy on me :)

In Dreamweaver, when I need to include a file all I need is this statement:
<!--#include file=&quot;../help.asp&quot;-->

When I need to edit this help file, I only need to do at 1 place and all the page that has this file included will get affected.

But in FP, looks like the included file is written out in &quot;each and every single&quot; file. That mean I have to go through &quot;each and every single&quot; file to edit it. Is there a way to edit just one file and they all will get affected?

I'm trying the edit a site, they have this:
<!--webbot bot=&quot;Include&quot;
U-Include=&quot;../../shared/header.asp&quot; TAG=&quot;BODY&quot; startspan -->

---code of that header file is also written out here...


Can someone please help me out here?

Thanks.

 
Use the orginal code:
<!--#include file=&quot;../help.asp&quot;-->

Don't try to use FP includes. This relies on FP extensions & if they become corrupt, they will not work.

But to answer your question - go to the header.asp - edit it & save it. That should work. Also when using FP includes, the HEAD & BODY tag need to be there, unlike the &quot;normal&quot; file includes.

__________________________
Corey

 
No, I think I confused you. FP includes was used originally in every single page. I did try to edit header file and save it but it didn't seem to work.

Event if I want to use normal includes now, I have to go to every single page change it.

What should I do now???

Many Thanks.
 
No I understood you. I was able to edit the include file (your header.asp) & it changed the included content on the other page.

Try adding just a few letters to your header.asp. You might need to go to Tools - Recalculate hyperlinks & then view your main page.



__________________________
Corey

 
In the header file, there is a link name Help:

<a href=&quot;../help/default.asp&quot;>Help</a>

Now I change the href=&quot;../help/about.asp&quot; but when I click on &quot;Help&quot; it keep going to &quot;default.asp&quot;
 
Did you refresh your IE & clear your internet cache to make sure you were not pulling from your local machine?

And is this on your published files? Change Help to Test (just to see if that works.



__________________________
Corey

 
I close the brwowser, refresh a couple time, still it doesn't work. &quot;Help&quot; is still &quot;Help&quot;, not &quot;Test&quot; as I changed it.
 
Did you use the web bot? The odd thing is:
- if you look at the source code here - you will see:
<!--webbot bot=&quot;Include&quot; U-Include=&quot;included_content.htm&quot; TAG=&quot;BODY&quot; startspan -->

<p>included content</p>

<!--webbot bot=&quot;Include&quot; i-checksum=&quot;7478&quot; endspan -->

But on your source code, I do not see this. But you did reference that in your first post.

__________________________
Corey

 
Yes they use Web bot. Does it mean I have to edit in all pages?
 
<!--webbot bot=&quot;Include&quot; U-Include=&quot;../../shared/side.asp&quot; TAG=&quot;BODY&quot; startspan
-->

Here is how they included the side.asp

 
Yes, it is here:

<!--webbot bot=&quot;Include&quot;
U-Include=&quot;shared/header.asp&quot; TAG=&quot;BODY&quot; startspan -->

In the default.asp
 
I went to & view the source. It is not there. What line is it on? This is what is there - which is actually in the header.asp:
<table border=&quot;0&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;100%&quot; height=&quot;90&quot; background=&quot;images/layout/Top2.jpg&quot;>
<table border=&quot;0&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><img border=&quot;0&quot; src=&quot;images/layout/Top1.jpg&quot;></td>
<td width=&quot;100%&quot;></td>
<td align=&quot;right&quot;><img border=&quot;0&quot; src=&quot;images/layout/Top3.jpg&quot;></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign=&quot;top&quot; height=&quot;22&quot;>
<table border=&quot;0&quot; width=&quot;100%&quot; background=&quot;images/layout/menu2.jpg&quot; height=&quot;22&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;50%&quot;><a href=&quot;default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_home.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;search/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_search.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/organization/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_org.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/participant/default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_part.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;help/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_help.jpg&quot;></a></td>
<!--td width=&quot;50%&quot;><a href=&quot;default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_home.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;search/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_search.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/organization/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_org.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/participant/default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_part.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;about/contact.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_help.jpg&quot;></a></td-->
<td width=&quot;50%&quot;>
<table border=&quot;0&quot; align=&quot;right&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td align=&quot;right&quot;><font face=&quot;Arial&quot; size=&quot;1&quot; color=&quot;#000000&quot;>Tuesday, December 16, 2003</font></td>
<td><img border=&quot;0&quot; src=&quot;images/layout/menu3b.jpg&quot;></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

__________________________
Corey

 
Now having said that - I do not think that it works with ASP. I know the FP email forms do ont. I did the same thing here:
And if you look at the source code, you will not see <!--webbot bot=&quot;Include&quot; U-Include=&quot;included_content.asp&quot; TAG=&quot;BODY&quot; --> - but you do see it on your local machine.

__________________________
Corey

 
<table border=&quot;0&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;100%&quot;>
<tr>
<td width=&quot;100%&quot; height=&quot;112&quot;><!--webbot bot=&quot;Include&quot;
U-Include=&quot;shared/header.asp&quot; TAG=&quot;BODY&quot; startspan -->

<table border=&quot;0&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;100%&quot; height=&quot;90&quot; background=&quot;images/layout/Top2.jpg&quot;>
<table border=&quot;0&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td><img border=&quot;0&quot; src=&quot;images/layout/Top1.jpg&quot;></td>
<td width=&quot;100%&quot;></td>
<td align=&quot;right&quot;><img border=&quot;0&quot; src=&quot;images/layout/Top3.jpg&quot;></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign=&quot;top&quot; height=&quot;22&quot;>
<table border=&quot;0&quot; width=&quot;100%&quot; background=&quot;images/layout/menu2.jpg&quot; height=&quot;22&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td width=&quot;50%&quot;><a href=&quot;default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_home.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;search/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_search.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/organization/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_org.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/participant/default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_part.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;help/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_help.jpg&quot;></a></td>
<!--td width=&quot;50%&quot;><a href=&quot;default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_home.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;search/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_search.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/organization/&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_org.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;myevents/participant/default.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_part.jpg&quot;></a><img border=&quot;0&quot; src=&quot;images/layout/but_spacer.jpg&quot;><a href=&quot;about/contact.asp&quot;><img border=&quot;0&quot; src=&quot;images/layout/but_help.jpg&quot;></a></td-->
<td width=&quot;50%&quot;>
<table border=&quot;0&quot; align=&quot;right&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr>
<td align=&quot;right&quot;><font face=&quot;Arial&quot; size=&quot;1&quot; color=&quot;#000000&quot;><%=FormatDateTime(date(),1)%></font></td>
<td><img border=&quot;0&quot; src=&quot;images/layout/menu3b.jpg&quot;></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

<!--webbot bot=&quot;Include&quot; i-checksum=&quot;64000&quot; endspan -->

</td>
</tr>

Here is the code inside the default file
 
Corey, I must give you a star for being soooooo patient with me. I really appreciate your help!

kendel
 
>>But look @ it on the server.>>

Do you mean the web bot is not showing on the server?
I have no idea. It's over my head.
 
No it is not. It is just showing the included content.
If you look at: & then @ (source code). Both are the same locally & were created the same - with the exception on is ASP & the other is HTML. A lot of the components do not work with FP. And this is just another one.

__________________________
Corey

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top