[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Backgroundimage in KHTMLPart, how?
From:       Jens Nixdorf <jens.nixdorf () embesso ! com>
Date:       2002-07-31 10:38:57
[Download RAW message or body]

Am Mittwoch, 31. Juli 2002 12:23 schrieb David Faure:

> > 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.

So, if i understand you correctly, i can make a html-page-skeleton 
(maybe index.html) and put it with the full path into begin()? And i 
can still generate the inline-htmlcode for this skeleton with write() ?

rgds, Jens

>> 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