Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: How to access Dom objects on a web view section

  1. #11
    Boy do I feel silly.

    That was actually very easy..

    working perfectly.


    mycall = Lianja.getElementByID("page1.section1").webview
    myview.evaluate("sayhi()")


    Thanks Barry - very powerful.

    Herb

  2. #12
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    Hi Herb,

    So as you can see, you can call functions in the WebView using oWebView.evaluate() and those functions can use Lianja.evaluate() inside the WebView function to call other functions in the App. It's a two way interaction.

    And with a little thought one WebView can call functions in another WebView which may be on a different page.
    Last edited by barrymavin; 2016-08-30 at 10:42.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #13
    Hi Barry,

    This is very cool. From a desktop canvas VFP section, I am easily manipulating the HTML objects in the webview.
    This allows me to do things that are little more difficult on desktop. Like setting the opacity of images and overlaying them.

    In this example, I have two images of yours truly - With some added hair on the right

    Name:  htmlinteractive1.jpg
Views: 206
Size:  36.7 KB

    In my vfp section, I just call the move and opacity functions I wrote in the webview.

    This really has my head spinning at the moment....
    Name:  htmlinteractive2.jpg
Views: 129
Size:  42.9 KB
    Herb

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