[Interest] WebVuew::runJavaScript problems
Jérôme Godbout
godboutj at amotus.ca
Thu Aug 23 14:59:30 CEST 2018
you can always add a request argument with current datetime to your request
url, this avoid caching:
https://myserver.org?date=20180823_085632
even if you don't use the argument, it would not cache it
On 23 August 2018 at 00:58, Jason H <jhihn at gmx.com> wrote:
> 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" <jhihn at gmx.com>
> > To: "interestqt-project.org" <interest at 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 at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> >
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180823/34f14fd4/attachment.html>
More information about the Interest
mailing list