API call to replace parts in html

Carsten Burghardt burghardt at kde.org
Sun May 9 23:09:19 BST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 09 May 2004 12:37, Kevin Krammer wrote:
> On Friday 07 May 2004 19:53, Carsten Burghardt wrote:
> > Hi,
> >
> > when an email (html page in this case) is displayed in kmail that
> > contains images and you selected an inline attachment style those images
> > are displayed. They reference a tmp file (<img src="file://...>). Now if
> > you use imap and activate load-on-demand those images exist but are
> > empty. They get loaded one by one and with each image the email is
> > completely repainted which is extremely ugly.
>
> Hmm, how is this handled in Konqueror?
> KHTML loads images one-by-one as well when being used as the browser.

But it doesn't reload them, doesn't it?

> > So I want khtml to repaint the page once the image is complete so that it
> > doesn't flicker that much. Is there anything that could be used for this?
> > Replace the image, tell the node to repaint, tell the complete page to
> > repaint, ...? A generic approach would be very good as this might also be
> > used for other parts e.g. text attachments (<div> or <p> in this case
> > AFAIK).
>
> DOM::Node::applyChanges() might work.

OK, but how to get the changes into the page? I think I need something to 
either tell khtml to update the complete page or even better to only reload 
one part.


Carsten
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAnqwRpgC5XOAdEFIRAhNWAJ9czXgoB89x8xqQjMiI9+yBEPlg2ACgmHhB
3mRrFDT8qhSm/VPEaKE393A=
=zMjy
-----END PGP SIGNATURE-----




More information about the kfm-devel mailing list