Results 1 to 3 of 3

Thread: Lianja html code

  1. #1
    Senior Member
    Join Date
    Oct 2019
    Posts
    156

    Lianja html code

    I had already asked this question before, but received no concrete answer, whether it is even possible to execute html code in a section or whether there are other alternatives. So I am going to add my question again: Barry had replied that I should send him the url for the calendar examples of what has happened. I have the following question. I have to execute an HTML5 code with a Javascript command in a section. The reason for this is that I want to test a framework for calendar functions that is based on html5 / javascript. What do I have to consider? Thanks for your help. Greetings Olaf (Please remember that I'm still a beginner!)

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,717
    Blog Entries
    17
    Hi Olaf,

    A WebView section acts like an embedded browser in a section.
    https://www.lianja.com/doc/index.php...ion_Attributes

    You dynamically generate HTML and JavaScript in a “Lianja Server Page” which is a file with a .rsp extension. Alternatively you can write a .pysp file (Python) or .jssp file (javascript).

    e.g.

    https://www.lianja.com/doc/index.php...imagequery_rsp

    You write the custom code manually. It’s a ProCode feature of Lianja.

    Details of Lianja Server Pages can be found at:
    https://www.lianja.com/doc/index.php...o_Server_Pages
    https://www.lianja.com/doc/index.php...navigation_rsp
    https://www.lianja.com/doc/index.php..._Visual_FoxPro

    Details of Python Server Pages can be found at:
    https://www.lianja.com/doc/index.php...n_Server_Pages
    https://www.lianja.com/doc/index.php...avigation_pysp
    https://www.lianja.com/doc/index.php...data_in_Python

    Details of JavaScript Server Pages can be found at:
    https://www.lianja.com/doc/index.php...t_Server_Pages
    https://www.lianja.com/doc/index.php...avigation_jssp
    https://www.lianja.com/doc/index.php..._in_JavaScript

    Add a WebView section to a page then click the … dialog button on the “Data Source” attribute. A template rsp file will be created. You then need to write you custom code to embed the third party web component that you want to embed. there are many rsp files in the library workspace that you can edit and study.

    There is no guarantee that third party components can be embedded as they may have been written in a way that rely on running in a web browser connected to a server.

    The best third party components to integrate into a Lianja WebView are jQuery based components. You need to study the documentation of the third party component to better understand how it is used.

    See this doc to understand how to pass parameters to your rsp page.

    https://www.lianja.com/doc/index.php/GETPARAMETER()

    The Calendar section (and many other standard sections) is in fact a custom WebViewWidget written as an .rsp file.
    https://www.lianja.com/doc/index.php/Calendar_Options

    Using WebViewWidgets
    https://www.lianja.com/doc/index.php...WebViewWidgets
    Last edited by barrymavin; 2021-11-28 at 08:43.
    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
    Senior Member
    Join Date
    Oct 2019
    Posts
    156
    Thanks Barry for your info. I will deal with it and hope that it can solve my problem. Thanks Olaf

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