You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, April 22nd 2008, 6:00pm

KHTMLPart - change html-code before it is shown

Hello

I've quite new to QT und KDE development but I've managed to come quite far on my own. A lot of trial and error involved...

Now I've got a question/problem.
My app shows web-pages (it uses KHTMLPart) and I've managed to show them. The page consist of frames (top and main). In the top frame JavaScript must be enabled.
In the main frame I want to disable JavaScript and want to remove all Flash-things and all iframes (for security and performance reasons).
I thought about doing this by parsing the html-code before it gets displayed. Removing all unwanted things would not be the problem, but I do not know how to get the main-frames html-code before it is shown.

Any ideas?

Thanks
Sebastian