By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,017 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,017 IT Pros & Developers. It's quick & easy.

Referencing a text/html file within another HTML file - WITHOUT Frames (e.g. Span, Div)

P: n/a
I was wondering if the following was possible:

Instead of using a frameset which references other individual HTML files,
have the <SPAN> tag reference another HTML file, which is placed within
that portion of the screen?

I know how frames work. I hate frames.

I like the SPAN tag, and I would like to be able to change the text
within that portion of the page.

I would also like to avoid having to do this in PHP, Perl or any
other scripting language.

Is this possible?
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a


Go USA! Go Israel! wrote:
I was wondering if the following was possible:

Instead of using a frameset which references other individual HTML files,
have the <SPAN> tag reference another HTML file, which is placed within
that portion of the screen?

I know how frames work. I hate frames.

I like the SPAN tag, and I would like to be able to change the text
within that portion of the page.
Well, check your favorite HTML reference, the <span> element doesn't
have a src attribute, the <iframe> tag however has one. There is also
the <object> tag to insert content from another URL into the page.
I would also like to avoid having to do this in PHP, Perl or any
other scripting language.


You could use server side includes (SSI) to include a snippet of HTML
from one file into a <span> tag but of course you need SSI support on
the server.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

P: n/a
Go USA! Go Israel! wrote:
I was wondering if the following was possible:

Instead of using a frameset which references other individual HTML files,
have the <SPAN> tag reference another HTML file, which is placed within
that portion of the screen?

I know how frames work. I hate frames.

I like the SPAN tag, and I would like to be able to change the text
within that portion of the page.

I would also like to avoid having to do this in PHP, Perl or any
other scripting language.

Is this possible?


No. Check the relevant HTML reference for SPAN. Neither can you
'reference' content with SPAN, nor can you put 'another HTML file' in
SPAN if you want the document to validate.

You could use IFRAMES or OBJECT or some javascript trickery or even the
CSS 'content' property, but all those solutions aren't better than
frames and will fail in many, many browsers.
Matthias

Jul 20 '05 #3

P: n/a
"Martin Honnen" <ma*******@yahoo.de> wrote in message news:3f********@olaf.komtel.net...
:
: Go USA! Go Israel! wrote:
:
: > I was wondering if the following was possible:
: >
: > Instead of using a frameset which references other individual HTML files,
: > have the <SPAN> tag reference another HTML file, which is placed within
: > that portion of the screen?
: >
: > I know how frames work. I hate frames.
: >
: > I like the SPAN tag, and I would like to be able to change the text
: > within that portion of the page.
:
: Well, check your favorite HTML reference, the <span> element doesn't
: have a src attribute, the <iframe> tag however has one. There is also
: the <object> tag to insert content from another URL into the page.
:
: > I would also like to avoid having to do this in PHP, Perl or any
: > other scripting language.
:
: You could use server side includes (SSI) to include a snippet of HTML
: from one file into a <span> tag but of course you need SSI support on
: the server.
:
You could also use WebCharm 'html' tag to include the BODY section
of an HTML file. For example, <SPAN><!--@html somefile.htm@--></SPAN>.
But of course you will also need WebCharm support on the web server.

--
Long On
Edgesoft Consulting Inc.
www.edgesoft.ca/go/index.html
long at edgesoft dot ca

Jul 20 '05 #4

P: n/a
"Long" <lo***********@rogers.com> wrote:
You could also use WebCharm 'html' tag to include the BODY section
of an HTML file. For example, <SPAN><!--@html somefile.htm@--></SPAN>.
But of course you will also need WebCharm support on the web server.


Have you actually managed to sell WC to any web hosts yet?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

P: n/a
Quoth the raven named Long:
You could also use WebCharm 'html' tag to include the BODY section
of an HTML file. For example, <SPAN><!--@html somefile.htm@--></SPAN>.
But of course you will also need WebCharm support on the web server.


Please do not post false hopes and proprietary solutions. Thank you.

To the OP: the above <SPAN> will only work on Long's server.

--
-bts
-This space intentionally left blank.

Jul 20 '05 #6

P: n/a
ma**********@hotmail.com (Go USA! Go Israel!) wrote in
news:10**************************@posting.google.c om:
I was wondering if the following was possible:

Instead of using a frameset which references other individual HTML
files, have the <SPAN> tag reference another HTML file, which is
placed within that portion of the screen?

I know how frames work. I hate frames.

I like the SPAN tag, and I would like to be able to change the text
within that portion of the page.

I would also like to avoid having to do this in PHP, Perl or any
other scripting language.

Is this possible?


How frequently does the inserted content change? If it's relatively
infrequent (a few times a week or even a day) the easiest thing to do would
be to preprocess the files before making them available on the server. If
the changes are relatively frequent (i.e. the included content is quite
dynamic) then your only hope is some sort of server-side process.
Jul 20 '05 #7

P: n/a
In article <ki********************************@4ax.com> in
comp.infosystems.www.authoring.html, Steve Pugh <st***@pugh.net>
wrote:
"Long" <lo***********@rogers.com> wrote:
You could also use WebCharm 'html' tag to include the BODY section
of an HTML file. For example, <SPAN><!--@html somefile.htm@--></SPAN>.
But of course you will also need WebCharm support on the web server.


Have you actually managed to sell WC to any web hosts yet?


If not, it's not for lack of spam^H^H^H^Htrying. :-)

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.