Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 05:29 PM
Go USA! Go Israel!
Guest
 
Posts: n/a
Default Referencing a text/html file within another HTML file - WITHOUT Frames (e.g. Span, Div)

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?
  #2  
Old July 20th, 2005, 05:29 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUTFrames (e.g. Span, Div)



Go USA! Go Israel! wrote:
[color=blue]
> 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.[/color]

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.
[color=blue]
> I would also like to avoid having to do this in PHP, Perl or any
> other scripting language.[/color]

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/

  #3  
Old July 20th, 2005, 05:29 PM
Matthias Gutfeldt
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUTFrames (e.g. Span, Div)

Go USA! Go Israel! wrote:[color=blue]
> 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?[/color]

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

  #4  
Old July 20th, 2005, 05:29 PM
Long
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUT Frames (e.g. Span, Div)

"Martin Honnen" <mahotrash@yahoo.de> wrote in message news:3fa917d5$1@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



  #5  
Old July 20th, 2005, 05:29 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUT Frames (e.g. Span, Div)

"Long" <longNOSPAMs2i@rogers.com> wrote:
[color=blue]
>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.[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
  #6  
Old July 20th, 2005, 05:29 PM
Beauregard T. Shagnasty
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUTFrames (e.g. Span, Div)

Quoth the raven named Long:
[color=blue]
> 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.[/color]

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.

  #7  
Old July 20th, 2005, 05:29 PM
Eric Bohlman
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUT Frames (e.g. Span, Div)

makemewell75@hotmail.com (Go USA! Go Israel!) wrote in
news:10077089.0311050725.3540310c@posting.google.c om:
[color=blue]
> 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?[/color]

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.
  #8  
Old July 20th, 2005, 05:29 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: Referencing a text/html file within another HTML file - WITHOUT Frames (e.g. Span, Div)

In article <ki8iqv473rufsof7i0notgovb9cjf2j69q@4ax.com> in
comp.infosystems.www.authoring.html, Steve Pugh <steve@pugh.net>
wrote:[color=blue]
>"Long" <longNOSPAMs2i@rogers.com> wrote:
>[color=green]
>>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.[/color]
>
>Have you actually managed to sell WC to any web hosts yet?[/color]

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/
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles