Hello all I hope someone here can set me straight on this since I can't for the heck of it figure it out.
Am no pro so please bear with me.
I have a program that downloads a HTML file and parses out some information.
And its all working good, but some of the information is being displayed by a JavaScript.
So in the QString witch I have the complete source code of the page I see the code for the JavaScript.
Not the info I want, is there a way I can run the entire script so I can get the info I need?
here is a snip of the code showing how i store the html page.
// function executed when QNetworkReply emits finished()
void getHTMLFile::replyFinsihed(QNetworkReply *reply)
{
sData.clear();
sData = qbData;
// continue with parsing data.
}
// function executed when QNetworkReply emits finished()
void getHTMLFile::replyFinsihed(QNetworkReply *reply)
{
QByteArray qbData = reply->readAll();
sData.clear();
sData = qbData;
// continue with parsing data.
}
To copy to clipboard, switch view to plain text mode
I have googeld around for a while and found this.
QWebSettings::globalSettings()->setAttribute(..);
QWebSettings::globalSettings()->setAttribute(..);
To copy to clipboard, switch view to plain text mode
But have not found a setting like
::evaluateJavaScript || ::enableScript
::evaluateJavaScript || ::enableScript
To copy to clipboard, switch view to plain text mode
There is a function in
QWebView::evaluateJavaScript()
QWebView::evaluateJavaScript()
To copy to clipboard, switch view to plain text mode
But from what i could find of information its not what i need (I may be wrong ofcorse..)
Any help and or guidance is much appreciated.
Cheers
WetCode
Bookmarks