How do I use jQuery in my Lianja JavaScript code?
How do I use jQuery in my Lianja JavaScript code?
Just include a reference to jquery from google or some other src in your .rsp file in a WebView section then you can use jquery as you would normally. The WebView embeds webkit so you have all the html5 that you need to use html5 canvases also.
One of the neat things about the Lianja WebView when building hybrid html5/desktop apps is that you can make calls into vfp code from inside the JavaScript embedded in the webview. Take a look at the charts in the libraries workspace to see how this is done.
Just a thought, but why don't you include jquery in the distro as its not very big and would be useful to use in WebViews.
That's not such a bad idea we will look into it.
Thanks.
We have included jquery 1.8.3 (latest version core and UI) into the distro now. You can now use jquery in WebView sections. Bear in mind that you can make callbacks into VFP code from JavaScript so you can interact with VFP business logic from jquery callbacks.
There is a small code example in the roadmap showing you how to include the jquery javascript libraries in your WebViews.
Last edited by barrymavin; 2012-09-10 at 04:08.
Bookmarks