Hi,

I'm writing a Konqueror plugin that needs to perform operations every time the DOM tree of a page changes. As DOM tree changes generally occur after a network request (an AJAX web-page fetched data on the Internet, on a plain HTML page has been loaded), I tried to use the started(KJob *) signal of KParts::ReadOnlyPart. When a KJob is given as parameter (the parameter can also be NULL), I also react on the finished() signal of the job.

This works for some web-pages (static HTML and Yahoo! Mail Neo), but the problem is that GMail does not seem to trigger the signal when I browse my emails. By using HTTP-Fox in Firefox, I can see that every action causes a network request to be performed, but the started(KJob *) signal is never fired. If you perform a search on DuckDuckGo and scroll the page, new results are appended to it (they are fetched from the network), but no signal is triggered.

Is there a mean to get a signal whenever the DOM tree of a document changes ? The best would be that the solution works equally well for web-pages rendered using KHTML or kdewebkit, but if hacks are needed to make one engine or the other work, I would also be happy.

Denis Steckelmacher.

Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to