I think I'm also seeing a caching problem where the server is updated but I'm getting old html code. Can I invalidate the cache?
> Sent: Wednesday, August 22, 2018 at 10:56 PM > From: "Jason H" <jh...@gmx.com> > To: "interestqt-project.org" <interest@qt-project.org> > Subject: [Interest] WebVuew::runJavaScript problems > > I'm trying to load and get a variable that is changed by the page. > webview.runJavaScript("testResult", function(result){ > console.log('webview result', result); > }); > > The html is > <html> > <script language ="javascript"> > var testResult="xxxx"; > </script> > <body> > > </body> > </html> > > But the output is: > qml: webview result undefined > > What am I doing wrong? > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest