[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Backgroundimage in KHTMLPart, how?
From: David Faure <david () mandrakesoft ! com>
Date: 2002-07-31 10:23:02
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 31 July 2002 12:09, Jens Nixdorf wrote:
> Hi,
>
> i want to generate a html-page dynamically with khtmlpart's
> write()-method.
>
> browser = new KHTMLPart(this);
> htmltext="<table><tr><td><font size=\"8\">Test</font></tr></table>";
> browser->begin();
^^^^ no URL here.
> browser->setAutoloadImages(true);
> browser->write("<body background=\"back.jpg\">");
... so back.jpg can't be "expanded" to a complete path, since your HTML source
has no path associated to it.
Possible fixes:
* put full path before back.jpg
* use the <BASE HREF> tag, to point to the right dir.
* pass "the path + /index.html" to begin() (slightly hackish)
Somewhen your app will install the image in a KDE share dir anyway,
so better look for that than using the current dir.
- --
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
On holidays from 01/08 to 06/08
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9R7qH72KcVAmwbhARAsajAJ9/OXT74KNZD/4qSNMYvOwy6s2PYQCffy4a
/gg2oSBYJkuMq7osyvLrseo=
=+xFq
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic