Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Txt function like <IMG SRC> ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hugh Newbury  
View profile  
 More options Nov 11 2012, 12:17 pm
Newsgroups: alt.html
From: Hugh Newbury <h...@hnewbury.uklinux.net>
Date: Sun, 11 Nov 2012 17:17:36 +0000
Local: Sun, Nov 11 2012 12:17 pm
Subject: Txt function like <IMG SRC> ?
Is there a function in HTML that will get a page to load a chunk of text
in exactly the same way that <IMG SRC> loads pix?

Hugh

--

Hugh Newbury

www.evershot-weather.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jukka K. Korpela  
View profile  
 More options Nov 11 2012, 12:21 pm
Newsgroups: alt.html
From: "Jukka K. Korpela" <jkorp...@cs.tut.fi>
Date: Sun, 11 Nov 2012 19:21:21 +0200
Local: Sun, Nov 11 2012 12:21 pm
Subject: Re: Txt function like <IMG SRC> ?
2012-11-11 19:17, Hugh Newbury wrote:

> Is there a function in HTML that will get a page to load a chunk of text
> in exactly the same way that <IMG SRC> loads pix?

No. Things like that are handled using server-side includes (or
preprocessing).

--
Yucca, http://www.cs.tut.fi/~jkorpela/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dorayme  
View profile  
 More options Nov 11 2012, 4:01 pm
Newsgroups: alt.html
From: dorayme <dora...@optusnet.com.au>
Date: Mon, 12 Nov 2012 08:01:30 +1100
Local: Sun, Nov 11 2012 4:01 pm
Subject: Re: Txt function like <IMG SRC> ?
In article <aga4thF1j0...@mid.individual.net>,
 Hugh Newbury <h...@hnewbury.uklinux.net> wrote:

> Is there a function in HTML that will get a page to load a chunk of text
> in exactly the same way that <IMG SRC> loads pix?

Not really, you would normally use server side includes for this.

Perhaps the closest you can get to using HTML to do this is an inline
class attribute with CSS that uses the 'content' property and the
:before and :after pseudo-elements; not much use generally, but maybe
useful for special purposes.

And, of course, for sighted visitors, you can make a pic of text (make
it big enough so none of those visitors have trouble)!

--
dorayme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jukka K. Korpela  
View profile  
 More options Nov 12 2012, 12:50 am
Newsgroups: alt.html
From: "Jukka K. Korpela" <jkorp...@cs.tut.fi>
Date: Mon, 12 Nov 2012 07:50:05 +0200
Local: Mon, Nov 12 2012 12:50 am
Subject: Re: Txt function like <IMG SRC> ?

2012-11-12 1:48, richard wrote:
> On Sun, 11 Nov 2012 17:17:36 +0000, Hugh Newbury wrote:

>> Is there a function in HTML that will get a page to load a chunk of text
>> in exactly the same way that <IMG SRC> loads pix?

>> Hugh

> <object>

It does not load text in the same way that <IMG SRC> loads an image
nowhere near. You could see this if you actually tried it.

> create a page with the text on it.
> At the point where you want the text to show, insert the tag.
> enclose the tag in a division container and style the division.

If you had actually tried it, you would know that styling the division
has no impact on the style of the text.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ray_Net  
View profile  
 More options Nov 12 2012, 11:21 am
Newsgroups: alt.html
From: Ray_Net <Ray_...@picarre.be>
Date: Mon, 12 Nov 2012 17:21:35 +0100
Local: Mon, Nov 12 2012 11:21 am
Subject: Re: Txt function like <IMG SRC> ?
In article <g50idb29wg8v.1gbdm5dyuilp9$....@40tude.net>, nore...@example.com says...

> On Sun, 11 Nov 2012 17:17:36 +0000, Hugh Newbury wrote:

> > Is there a function in HTML that will get a page to load a chunk of text
> > in exactly the same way that <IMG SRC> loads pix?

> > Hugh

> <object>

> create a page with the text on it.
> At the point where you want the text to show, insert the tag.
> enclose the tag in a division container and style the division.

I think that he just want a kind of
<include>\\alltextfiles\mytextfile.txt</include>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jukka K. Korpela  
View profile  
 More options Nov 12 2012, 1:01 pm
Newsgroups: alt.html
From: "Jukka K. Korpela" <jkorp...@cs.tut.fi>
Date: Mon, 12 Nov 2012 20:01:22 +0200
Local: Mon, Nov 12 2012 1:01 pm
Subject: Re: Txt function like <IMG SRC> ?

2012-11-12 19:50, richard wrote:
> that's what the object tag is and does.

So you still haven't actually tried it, have you?

--
Yucca, http://www.cs.tut.fi/~jkorpela/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jukka K. Korpela  
View profile  
 More options Nov 12 2012, 1:24 pm
Newsgroups: alt.html
From: "Jukka K. Korpela" <jkorp...@cs.tut.fi>
Date: Mon, 12 Nov 2012 20:24:53 +0200
Local: Mon, Nov 12 2012 1:24 pm
Subject: Re: Txt function like <IMG SRC> ?
2012-11-12 20:02, Tim Streater wrote:

> In article <14hbwwxkxmqr0.v6ot7uizob1b....@40tude.net>,
> richard <nore...@example.com> wrote:
[...]
>> http://joliclic.free.fr/html/object-tag/en/object-text.html

> Badly out-of-date page, judging by the browser versions it claims to
> work with.

Last-Modified: Wed, 25 Oct 2006.

But that's really not the point. The point is that inclusion of content
with <object> (or with <iframe>) will not "get a page to load a chunk of
text in exactly the same way that <IMG SRC> loads pix". It simply
includes an external document, rendered in an isolated box.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ray_Net  
View profile  
 More options Nov 12 2012, 7:17 pm
Newsgroups: alt.html
From: Ray_Net <Ray_...@picarre.be>
Date: Tue, 13 Nov 2012 01:17:33 +0100
Local: Mon, Nov 12 2012 7:17 pm
Subject: Re: Txt function like <IMG SRC> ?
In article <e4pv2o15vt6k$.191ahrfkb2i3e$....@40tude.net>, nore...@example.com says...

The question was not to use it in php but:
 "Is there a function in HTML..."

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »