Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Txt function like <IMG SRC> ? (http://www.velocityreviews.com/forums/t954414-txt-function-like-img-src.html)

Hugh Newbury 11-11-2012 05:17 PM

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

Jukka K. Korpela 11-11-2012 05:21 PM

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/

dorayme 11-11-2012 09:01 PM

Re: Txt function like <IMG SRC> ?
 
In article <aga4thF1j01U1@mid.individual.net>,
Hugh Newbury <hugh@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

richard 11-11-2012 11:48 PM

Re: Txt function like <IMG SRC> ?
 
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.

Jukka K. Korpela 11-12-2012 05:50 AM

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/

Ray_Net 11-12-2012 04:21 PM

Re: Txt function like <IMG SRC> ?
 
In article <g50idb29wg8v.1gbdm5dyuilp9$.dlg@40tude.net>, noreply@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>

richard 11-12-2012 05:50 PM

Re: Txt function like <IMG SRC> ?
 
On Mon, 12 Nov 2012 17:21:35 +0100, Ray_Net wrote:

> In article <g50idb29wg8v.1gbdm5dyuilp9$.dlg@40tude.net>, noreply@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>


that's what the object tag is and does.
include is server side and used in php.
object needs no server.


richard 11-12-2012 05:57 PM

Re: Txt function like <IMG SRC> ?
 
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


http://joliclic.free.fr/html/object-...ject-text.html

Jukka K. Korpela 11-12-2012 06:01 PM

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/

Tim Streater 11-12-2012 06:02 PM

Re: Txt function like <IMG SRC> ?
 
In article <14hbwwxkxmqr0.v6ot7uizob1b.dlg@40tude.net>,
richard <noreply@example.com> 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?


> http://joliclic.free.fr/html/object-...ject-text.html


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

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689


All times are GMT. The time now is 12:18 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.