473,394 Members | 1,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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?
Jul 20 '05 #1
7 7653


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
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
"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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Arthur M. Kang | last post by:
Can somebody concur or verify the following? I'm having this problem on all of my installations. I've got Apache 2.0.40 and PHP 4.2.2 installed and configured from RedHat RPMs. Nothing out of...
3
by: Michelle | last post by:
I am trying to write a general function XML file parser, but it keeps choking when it finds embedded HTML within the text, for example: <item> <title>New PHP eBooks in PDF</title> <description>...
2
by: Joe Price | last post by:
Hi chaps I've got an XML file, within that file i've embedded html code using the <!]> tag I'm displaying that xml file through a browser using an xsl style sheet. However it is displaying...
2
by: Larry Neylon | last post by:
Hi, What I am trying to do is to work out which part of a HTML page contained within an IFRAME has been selected. I have complete control over both the main window and the content of the IFRAME...
2
by: relaxedrob | last post by:
Hi All! I have a frameset document and I want each mainFrame document to have the following ability: - be viewed by itself (i.e. without frames if within frameset). - be viewed within frame...
1
by: mike c | last post by:
I have a search app that searches local HTML files for a specified term. I then display the pages that contain the term. I would like to highlight the search term within the HTML when it is...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
3
by: Alex | last post by:
Hello. First, with AJAX I will get a remote web page into a string. Thus, a string will contain HTML tags and such. I will need to extract text from one <span> for which I know the ID the inner...
2
by: gemguy | last post by:
Hi I have two .js files namely js1 and js.2. I want to include js1 file within js2 file. Is it possible. I tried with document.write("<script src="abc.js">.....</script>"). Let me have any...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.