Difference between revisions of "Developing a Custom WebViewWidget"

From Lianjapedia
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
WebViewWidgets can be developed in LianjaScript (.rsp file), Python (.pysp file) or JavaScript (.jssp file).
 
WebViewWidgets can be developed in LianjaScript (.rsp file), Python (.pysp file) or JavaScript (.jssp file).
  
They are essentially HTML files that contain blocks of code enclosed in <% … %> tags. This code when executed generates HTML that replaces the code being exited in the output file.  
+
They are essentially HTML files that contain blocks of code enclosed in <% … %> tags. This code when executed generates HTML that replaces the code being executed in the output file.  
  
 
Let’s look at a simple LianjaScript example.  
 
Let’s look at a simple LianjaScript example.  
  
<code lang=“recital”>
+
<code lang="recital">
// todo
+
<html>
 +
<body>
 +
 
 +
<%
 +
 
 +
// get parameters
 +
private p_arg1 = getParameter(“arg1”, “”)
 +
 
 +
// emit HTML
 +
? “<h1>” + p_arg1 + “</h1>”
 +
 
 +
%>
 +
 
 +
</body>
 +
</html>
 
</code>
 
</code>

Latest revision as of 04:12, 16 October 2023

Under development

WebViewWidgets can be developed in LianjaScript (.rsp file), Python (.pysp file) or JavaScript (.jssp file).

They are essentially HTML files that contain blocks of code enclosed in <% … %> tags. This code when executed generates HTML that replaces the code being executed in the output file.

Let’s look at a simple LianjaScript example.

<html>
<body>
 
<%
 
// get parameters 
private p_arg1 = getParameter(“arg1”, “”)
 
// emit HTML
? “<h1>” + p_arg1 + “</h1>”
 
%>
 
</body>
</html>