ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | June 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [enhydra] insert a file(.pdf, .doc) somewhere in a web page


Hi all,

Well, if you choose to "embed" the article as an HTML tree (keeping some formating), you should rather use a <div id="..."> tag, as the span tag may only contain raw text according to the HTML specs.

Regards,

Gilles,

On 8 juin 04, at 09:22, Petr Stehlik wrote:

V Út, 08. 06. 2004 v 05:31, boxes_cu@xxxxxxxxx píše:
I'm trying to show some articles(in .pdf, .doc) which are in a
database into a web page. I know already how to retrieve them from the
database but I don't know which tag I could use in the HTML to say
that there(in some place on the page) it will be a .pdf or a .doc and
dynamically put it later. If somebody could help, I'll preciate it.

The tag you search for is named <span>.

Example HTML: <span id="article">here will be an article from
database</span>.

It's up to you to convert the article either to plain text (then you can
use good old 'page.setTextArticle(article);'), or to format it to HTML
and then insert the HTML subtree into the <span> pair :)

Petr




--
You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Gilles Sérasset
GETA-CLIPS-IMAG (UJF, INPG & CNRS)
BP 53 - F-38041 Grenoble Cedex 9
Phone: +33 4 76 51 43 80
Fax:   +33 4 76 44 66 75





<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.