INPUT, WIDGET and custom elements in h-smile core

What is a difference between <input> and <widget> elements [in h-smile core]? <input> is intrinsically display:inline-block element and <widget> is intrinsically display:block element. So <input> can live only in some element that has display-model:inline-inside model, in other words in some text container like <p> (paragraph). So if you have markup as: <div> Text: <input type=……

JavaScript. Private members (instance variables).

As you know JavaScript has no concept of private members in objects. Objects there are “racks of properties” that anyone can change. Here is a simple way of making “objects” in JS that have private instance variables. Such variables can be changed only by [public] methods you provide. Consider following code: function CreateMyObject() { var…

Sciter. Working with persistent data (database)

Here is an example of minimalistic application working with DB (persistent data) in Sciter. This sample is using three files: simple-db-form.htm – main file of our application; db.tis – open or create database; form.tis – behavior that handles showing/saving data from list of input elements on the form. db.tis – open or create database This…