Results 1 to 7 of 7

Thread: Using jQuery in Lianja

  1. #1

    Using jQuery in Lianja

    How do I use jQuery in my Lianja JavaScript code?

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,155
    Blog Entries
    22
    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.

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Posts
    25
    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.

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,155
    Blog Entries
    22
    That's not such a bad idea we will look into it.

  5. #5
    Junior Member
    Join Date
    Feb 2012
    Posts
    25
    Thanks.

  6. #6
    Quote Originally Posted by fredwilson View Post
    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.
    I am using JavaScript extensively (because thats what I know) with Lianja and i think this would be useful too. Having some selected jquery plugins included would also be very helpful as it just makes installing apps easier.

  7. #7
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,155
    Blog Entries
    22
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us