PDA

View Full Version : Why the QWebView does not execute the script on this webpage?



dv8
29th January 2013, 15:23
Here is the code from the MainWindow constructor:

view = new QWebView(this);
view->load(QUrl("http://checkusernames.com/"));
The page loads fine and there is a script on that page which is supposed to be executed when the "Check User Name" button is clicked (manually). It executes fine in IE and FireFox, but in the QWebView nothing happens. My question is: Why this script is not executed in the QWebView?
I have the WebAttribute JavascriptEnabled set to true...

wysota
29th January 2013, 16:12
So it doesn't work if you click on the button, yes?

dv8
29th January 2013, 16:19
yes, when you click on the button nothing happens.

wysota
29th January 2013, 19:32
It doesn't mean the script didn't execute. Fire up the web inspector and check there, maybe you'll get some more info.

dv8
30th January 2013, 06:38
I did activated the web inspector, but I'm not sure I have enough knowledge to determine where the problem might be. :(
I see one script error:
TypeError: 'null' is not an object (evaluating 'b.each') - cloudflare.min.js:22
but it does not seam to be related to the script that is supposed to be executed when the button is clicked.
I would really appreciate some more help on this.