PDA

View Full Version : Change HTML source in QWebView during load



The_Fallen
8th August 2012, 19:12
Hi,

I'm displaying a webpage that makes heavy use of Javascript in a QWebView. In particular, the site reloads parts of the page periodically using Prototype's Ajax.Updater. Now I would like to be informed, whenever such a reload has finished, i.e. when the new HTML code is included in the page.
My current approach is to poll the corresponding QWebElement continuously for changes, which, of course, is quite a dirty hack. Now I'm think of a way to intercept the javascript for loading the new content directly, but don't know how. Can I somehow analyse and change the HTML/Javascript that is loaded before it is displayed? Or do you have another idea how I could do this?

Cheers,
fallen

Viper666
9th August 2012, 21:29
sorry i don't want make new thread my question is in what make google the homepages animations ? and why QWebView can't play it? The plugins are enabled