Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Creating a default footer on a page

Reply
Thread Tools

Creating a default footer on a page

 
 
Advo
Guest
Posts: n/a
 
      08-08-2006
Hi there. basically what we are trying to do is create a default footer
page (links.html) which we can then have on every one of our pages,
meaning we dont have to change loads of pages, but just one page
(links.html) if things need altering.

Now i will hear you say use php, or asp.. i know I can do this, but the
client has requested us to not use that, nor use JS, and that his page
extension must remain as .html.

I tried using an iframe, but this did not work as expected..it showed
the content of links.html ok, but when the user views the page, all
they basically see is <iframe src="links.html"></iframe> rather than
the other stuff in links, so imageing if links.html contained:

<a href="some_page.html">test link</a>

then viewing our current main page would also show that, thus it looks
like all the links etc within the links.html page, also appear in the
source of the main page, this is for SEO reasons etc.

Any ideas please?

Thanks for your time

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      08-08-2006
In article
< .com>,
"Advo" <> wrote:

> Hi there. basically what we are trying to do is create a default footer
> page (links.html) which we can then have on every one of our pages,
> meaning we dont have to change loads of pages, but just one page
> (links.html) if things need altering.
>
> Now i will hear you say use php, or asp.. i know I can do this, but the
> client has requested us to not use that, nor use JS, and that his page
> extension must remain as .html.
>
> I tried using an iframe, but this did not work as expected..it showed
> the content of links.html ok, but when the user views the page, all
> they basically see is <iframe src="links.html"></iframe> rather than
> the other stuff in links, so imageing if links.html contained:
>
> <a href="some_page.html">test link</a>
>
> then viewing our current main page would also show that, thus it looks
> like all the links etc within the links.html page, also appear in the
> source of the main page, this is for SEO reasons etc.
>
> Any ideas please?


Yes. Given the restrictions you mention, put the footer on every
page. If you change it, do it auto with a simple Find and Replace
in any decent text editor. And structure you files in such a way
that you can easily upload to the server, keep all the html files
concerned in their own folders without other things like pics -
so you don't need to comb thru to select them out...

--
dorayme
 
Reply With Quote
 
 
 
 
Advo
Guest
Posts: n/a
 
      08-08-2006
Ahh. i thought that may be the case, so theres no other way of doing it
without the use of say ASP, JS or PHP, just solely in html?


dorayme wrote:
> In article
> < .com>,
> "Advo" <> wrote:
>
> > Hi there. basically what we are trying to do is create a default footer
> > page (links.html) which we can then have on every one of our pages,
> > meaning we dont have to change loads of pages, but just one page
> > (links.html) if things need altering.
> >
> > Now i will hear you say use php, or asp.. i know I can do this, but the
> > client has requested us to not use that, nor use JS, and that his page
> > extension must remain as .html.
> >
> > I tried using an iframe, but this did not work as expected..it showed
> > the content of links.html ok, but when the user views the page, all
> > they basically see is <iframe src="links.html"></iframe> rather than
> > the other stuff in links, so imageing if links.html contained:
> >
> > <a href="some_page.html">test link</a>
> >
> > then viewing our current main page would also show that, thus it looks
> > like all the links etc within the links.html page, also appear in the
> > source of the main page, this is for SEO reasons etc.
> >
> > Any ideas please?

>
> Yes. Given the restrictions you mention, put the footer on every
> page. If you change it, do it auto with a simple Find and Replace
> in any decent text editor. And structure you files in such a way
> that you can easily upload to the server, keep all the html files
> concerned in their own folders without other things like pics -
> so you don't need to comb thru to select them out...
>
> --
> dorayme


 
Reply With Quote
 
Brian Cryer
Guest
Posts: n/a
 
      08-08-2006
"dorayme" <> wrote in message
news:doraymeRidThis-...
> In article
> < .com>,
> "Advo" <> wrote:
>
>> Hi there. basically what we are trying to do is create a default footer
>> page (links.html) which we can then have on every one of our pages,
>> meaning we dont have to change loads of pages, but just one page
>> (links.html) if things need altering.
>>
>> Now i will hear you say use php, or asp.. i know I can do this, but the
>> client has requested us to not use that, nor use JS, and that his page
>> extension must remain as .html.
>>
>> I tried using an iframe, but this did not work as expected..it showed
>> the content of links.html ok, but when the user views the page, all
>> they basically see is <iframe src="links.html"></iframe> rather than
>> the other stuff in links, so imageing if links.html contained:
>>
>> <a href="some_page.html">test link</a>
>>
>> then viewing our current main page would also show that, thus it looks
>> like all the links etc within the links.html page, also appear in the
>> source of the main page, this is for SEO reasons etc.
>>
>> Any ideas please?

>
> Yes. Given the restrictions you mention, put the footer on every
> page. If you change it, do it auto with a simple Find and Replace
> in any decent text editor. And structure you files in such a way
> that you can easily upload to the server, keep all the html files
> concerned in their own folders without other things like pics -
> so you don't need to comb thru to select them out...


I have a similar issue and if you rule out php, asp, ssi, js etc then
dorayme's solution is the only one I could find that worked. I started using
a find and replace tool, but have recently moved on to a html-preprocessor,
but the basic solution remains the same - put it in the html files and be
prepared to do global find and replace when necessary.
--
Brian Cryer
www.cryer.co.uk/brian



 
Reply With Quote
 
Advo
Guest
Posts: n/a
 
      08-08-2006
ssi

Isnt that part of ASP?

I have seen something on that, and think i tried it? although i cant
remember. Do you have something special set up in order for it to work?

Cheers


Brian Cryer wrote:
> "dorayme" <> wrote in message
> news:doraymeRidThis-...
> > In article
> > < .com>,
> > "Advo" <> wrote:
> >
> >> Hi there. basically what we are trying to do is create a default footer
> >> page (links.html) which we can then have on every one of our pages,
> >> meaning we dont have to change loads of pages, but just one page
> >> (links.html) if things need altering.
> >>
> >> Now i will hear you say use php, or asp.. i know I can do this, but the
> >> client has requested us to not use that, nor use JS, and that his page
> >> extension must remain as .html.
> >>
> >> I tried using an iframe, but this did not work as expected..it showed
> >> the content of links.html ok, but when the user views the page, all
> >> they basically see is <iframe src="links.html"></iframe> rather than
> >> the other stuff in links, so imageing if links.html contained:
> >>
> >> <a href="some_page.html">test link</a>
> >>
> >> then viewing our current main page would also show that, thus it looks
> >> like all the links etc within the links.html page, also appear in the
> >> source of the main page, this is for SEO reasons etc.
> >>
> >> Any ideas please?

> >
> > Yes. Given the restrictions you mention, put the footer on every
> > page. If you change it, do it auto with a simple Find and Replace
> > in any decent text editor. And structure you files in such a way
> > that you can easily upload to the server, keep all the html files
> > concerned in their own folders without other things like pics -
> > so you don't need to comb thru to select them out...

>
> I have a similar issue and if you rule out php, asp, ssi, js etc then
> dorayme's solution is the only one I could find that worked. I started using
> a find and replace tool, but have recently moved on to a html-preprocessor,
> but the basic solution remains the same - put it in the html files and be
> prepared to do global find and replace when necessary.
> --
> Brian Cryer
> www.cryer.co.uk/brian


 
Reply With Quote
 
Advo
Guest
Posts: n/a
 
      08-08-2006
Actually now, ive got the other problem. I tried using JS, that worked
fine to display the information, but when i view the source, all i see
is the following;

<script src="javascript/footer_test.js">
</script>

What im after is for the contents of footer_test.js which is basically
html links, to also be shown on this main page of source if that makes
sense.

Any ideas

 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      08-08-2006

"Advo" <> skrev i meddelandet
news: oups.com...
> Actually now, ive got the other problem. I tried using JS, that worked
> fine to display the information, but when i view the source, all i see
> is the following;
>
> <script src="javascript/footer_test.js">
> </script>
>
> What im after is for the contents of footer_test.js which is basically
> html links, to also be shown on this main page of source if that makes
> sense.
>
> Any ideas


Are you talking about including the contents of a footer in a html page or
in a php page or in an asp page?

--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
Vad kallar man Sverige på italienska?
E l´Italia in svedese?



 
Reply With Quote
 
Brian Cryer
Guest
Posts: n/a
 
      08-08-2006
"Advo" <> wrote in message
news: ups.com...
> ssi
>
> Isnt that part of ASP?


I don't use server side includes (because my original host didn't support
them), but I believe that ssi is quite independent of asp (or php etc). The
Apache documentation puts it more clearly than I could
(http://httpd.apache.org/docs/1.3/howto/ssi.html): "They [SSI] let you add
dynamically generated content to an existing HTML page, without having to
serve the entire page via a CGI program, or other dynamic technology." So,
ssi is implemented by the webserver and is different from asp, php etc where
it delegates to another application. (I'm sure someone will put me right if
I'm mistaken.)

> I have seen something on that, and think i tried it? although i cant
> remember. Do you have something special set up in order for it to work?


Sorry, my knowledge of ssi is rather lacking. A search through the Apache
documentation should show you what you need to know. If you are using IIS
then this might be a good starting place -
http://support.microsoft.com/default...;EN-US;Q203064, but to be
honest its just the first relevant looking article that came up when I
searched for "ssi iis".
--
Brian Cryer
www.cryer.co.uk/brian


 
Reply With Quote
 
Andy Dingley
Guest
Posts: n/a
 
      08-08-2006

Advo wrote:

> Hi there. basically what we are trying to do is create a default footer
> page (links.html) which we can then have on every one of our pages,


http://allmyfaqs.net/faq.pl?Include_one_file_in_another

Just use SSI. Easy.

 
Reply With Quote
 
Advo
Guest
Posts: n/a
 
      08-08-2006
well our hosting company uses IIS and we can do custom stuff on it
anyway, so im thinking that now rules out SSI's


Andy Dingley wrote:
> Advo wrote:
>
> > Hi there. basically what we are trying to do is create a default footer
> > page (links.html) which we can then have on every one of our pages,

>
> http://allmyfaqs.net/faq.pl?Include_one_file_in_another
>
> Just use SSI. Easy.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initial class name for Default page is _Default instead of Default Sean Dockery ASP .Net 3 06-21-2009 04:30 AM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
Why is Default.aspx not present in the Default Content page? Gaetan ASP .Net 3 02-14-2006 07:24 PM
print asp page without header and footer ashj ASP .Net 0 06-24-2004 04:54 AM
Print webpage without default IE header/footer Jurjen de Groot ASP .Net 2 01-20-2004 06:01 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57