Results 1 to 3 of 3

Thread: Javascript function from Python Section

  1. #1
    Member
    Join Date
    Nov 2013
    Posts
    77

    Javascript function from Python Section

    hi,

    I have created a function in javascript and put it in a .js file in Lianja. Say if the function name is "sayHello()", how do I call it from my Form Section (Python Scripting Language)?

    And one more thing is: the "sayHello()" function has another .js file referenced by means of the script/src tag like

    <script type="text/javascript" src="http://localhost:12175/HelloWorld.js"></script>

    What would be the right way to get these to work?

    Thanks & Regards,
    Murali

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,833
    Hi Murali,

    Lianja WebViews can be written in either Lianja/VFP (.rsp pages) or JavaScript (.jssp pages).

    Take a look at this blog article as it will better show you how write "Server Pages" in JavaScript.
    http://www.lianja.com/resources/blog...a-cloud-server

    Any JavaScript function in a WebView can be called using the evaluate() method on the WebView.
    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. #3
    Member
    Join Date
    Nov 2013
    Posts
    77
    hi Barry,

    Cool...thanks, will check that out.

    Cheers,
    Murali

Tags for this Thread

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