Author Topic: HTML topics  (Read 6903 times)

Offline Berlin-Bob

  • RootsChat Honorary
  • RootsChat Marquessate
  • *******
  • Posts: 7,443
    • View Profile
Re: HTML topics
« Reply #9 on: Saturday 22 April 06 11:19 BST (UK) »
Hi Karren,

wasn't really expecting a solution, but ever hopeful !!

Once again, many thanks to you and your husband,
Bob
Any UK Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)

Offline Malcolm Bull

  • RootsChat Veteran
  • *****
  • Posts: 908
    • View Profile
Re: HTML topics
« Reply #10 on: Saturday 22 April 06 16:41 BST (UK) »
From another source, I've found that you can almost do what I want with the

<IFRAME .....>

tag.  But I'll have to play around with it a bit as it seems to ignore any tags in the brought-in file, but that may just be my not being familiar with the tag.

Watch this space.

Malcolm Bull
Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball / Potter

Offline RJ_Paton

  • RootsChat Honorary
  • RootsChat Marquessate
  • *******
  • Posts: 8,594
  • Cuimhnichibh air na daoine bho'n d'thainig sibh
    • View Profile
Re: HTML topics
« Reply #11 on: Saturday 22 April 06 17:19 BST (UK) »
Some samples of using iframes to do what has been suggested here can be found at
http://www.htmlcodetutorial.com/frames/_IFRAME.html

One of the problem with iframes is that some older browsers don't support them ... although IE6 & 7 and Firefox v1 & above do.

Another problem is that some adblockers will block iframes

Offline Chasing-fireflies

  • RootsChat Veteran
  • *****
  • Posts: 750
  • Genealogy is like Chasing fireflies....
    • View Profile
Re: HTML topics
« Reply #12 on: Saturday 22 April 06 19:26 BST (UK) »
I dont know if this is any use to anyone as i have not asked my husband to explain the jargon to me but i came accross it as a link on one of the sites i use and thought of you guys. Its probably useless but try it to see

http://code.google.com/webstats/index.html


 ;)
Previously - Badgirl
Thomas-Llangynwyd
Morgan-Garw / Sirhowy
Richards - Bettws
Philips - Rhondda
Pinn - London


Offline Malcolm Bull

  • RootsChat Veteran
  • *****
  • Posts: 908
    • View Profile
Re: HTML topics
« Reply #13 on: Sunday 30 April 06 10:45 BST (UK) »
I posted the same question on an HTML website and there were one or 2 useful suggestions.

Hopefully, you can see the thread at

http://www.webmasterforums.com/html-css/3368-there-tag-like-img-text.html#post11208

Regards

Malcolm Bull
Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball / Potter

Offline Berlin-Bob

  • RootsChat Honorary
  • RootsChat Marquessate
  • *******
  • Posts: 7,443
    • View Profile
Re: HTML topics
« Reply #14 on: Sunday 30 April 06 11:07 BST (UK) »
Hi Malcolm,

thanks for the link.

iframe might do the trick, I'll have to try it out.
Although I seem to recall seeing something about it being "deprecated" i.e. allowed but not recommended, as it will disappear in a later version.
Not sure about that though, so don't take it as gospel

The second guy is, in effect, saying "use PHP" which is OK on the website, but not for a CD version.
His example seems very convoluted though.  If you decide to "go PHP", let me know, there are easier ways  :)
for instance (Skeleton programme):

<? include header.htm ?>
your htm code
<? include boilerplate1.htm ?>
more htm code
<? include boilerplate2.htm ?>
more htm code
etc.
<? include footer.htm ?>

I may have to re-think my whole philosophy here, concerning compatible code for website and CD.

Bob
Any UK Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)

Offline Malcolm Bull

  • RootsChat Veteran
  • *****
  • Posts: 908
    • View Profile
Re: HTML topics
« Reply #15 on: Monday 01 May 06 12:09 BST (UK) »
Your solution seems to promise what I'm looking for.  If it really is as simple as

<? include ...

then please tell me more.

I'm quite happy to consider PHP it's just that I haven't read much about it, and when I start to read about CSS my eyes glaze over and I start to lose the will to live.

Regards

Malcolm Bull
Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball / Potter

Offline Berlin-Bob

  • RootsChat Honorary
  • RootsChat Marquessate
  • *******
  • Posts: 7,443
    • View Profile
Re: HTML topics
« Reply #16 on: Monday 01 May 06 12:35 BST (UK) »
Quote
and when I start to read about CSS my eyes glaze over and I start to lose the will to live.

looks like a typo to me, shouldn't that read
Quote
and when I start to read about CSS my eyes glaze over and I decide: I'm quite happy with what I've got, thank you !!

Seriously though:

In one sense it is as easy as I've explained it above.
The only catch is that the file that uses the includes needs to have the extension php rather than htm or html. The daft thing is, that the files are then read as HTML, which is why we have to keep embedding the php bits in <? .... ?> just so the program knows which bits realy are php !

Try it out on one of the pages you are linking to: (example: freds-biography)
- change the name of the file from freds-biography.htm to freds-biography.php
- change the link on your calling page to freds-biography.php
- create a simple HTML file with a few lines of text: textblock1.htm
- add some <? include textblock1.htm ?> at different places in freds-biograpy.php
- upload to your site (fred's biography, and the page with the calling link) and see if it works
(just tried it on mine and it did !)

Even simpler, don't change the page with the calling link, but just call http://yourwebsitename/freds-biography.php
Then you only have one file to change.

Bob
Any UK Census Data included in this post is Crown Copyright (see: www.nationalarchives.gov.uk)

Offline Malcolm Bull

  • RootsChat Veteran
  • *****
  • Posts: 908
    • View Profile
Re: HTML topics
« Reply #17 on: Tuesday 02 May 06 08:57 BST (UK) »
Bob:

I tried to follow your hints.  Here's my main PHP file called test.php

<html>
<body>   
the cat sat on the mat aa a a a a a a a a a a a a a a
before
===============================
<?include xxx.html ?>         
===============================
after
the cat sat on the mat zz zz z z z z z z z zz z z z z z
</body>
</html>


and here's the included section xxx.html

<html>
now is the time for all good men to come to the aid of the party a a a a a a
<b> this is the inserted document </b>
now is the time for all good men to come to the aid of the party z z z z z z z
</html>


and here's the resultant output

the cat sat on the mat aa a a a a a a a a a a a a a a before ===============================   
=============================== after the cat sat on the mat zz zz z z z z z z z zz z z z z z


with the included section missing.

Do I have the correct syntax for the <? include tag and do I have the correct tags, especially in the xxx.html text?

Any help would be appreciated.

Malcolm Bull
Surname interests:

Huntingdon: Bull / Shelford
Rotherham: Andrews / Steel
Easingwold: Snowball / Potter