Quantcast
Channel: Script – sciter
Browsing index pages (47 articles)

Event handling in Sciter

Event handling is a cornerstone of any UI application. And not only UI application, console application may also react on CTRL-C, LOGOFF and other events. For the note: Browsers and Sciter use...

View Article


include library “name”– native extensions

Since version 4.4.3.24 Sciter support native loadable extensions. Native Sciter Extension (NSE) is a dynamically loadable library (.dll, .dylib, .so) that exports at least one function: BOOL SCAPI...

View Article


Native code exposure to script

Mechanism of native code exposure is more or less finalized. In general the architecture is a mix of COM’s IUnknown/IDispatch and Objective-C message passing approaches. Basic idea is pretty simple and...

View Article

Extended C++ interface support in Sciter

If C++ would have reflection life will be a bit easier.  It could be a breeze to add native functionality to Sciter using it – in particular to expose native objects to script. But no reflection in...

View Article

Plus framework: proper use of repeatables

Proper use of bound collection observed by @each or @repeat elements Bound collections Bound collections are arrays or objects placed inside namespaces bound with DOM: namespace Data { var...

View Article


Sciter 4.4.0.0 with Reactor on board

4.4.0.0 is published so you can download it. It contains Reactor features, please read about it here. Essentially this version adds just two things implemented natively: SSX – JSX alike script syntax...

View Article

Image may be NSFW.
Clik here to view.

Reactor is getting shape.

Componentization For reactive components, script where they are defined should be the only source of truth. So components shall contain also style information so the engine will know how to style them...

View Article

Image may be NSFW.
Clik here to view.

Built-in ReactJs in Sciter.

TL;DR: Sciter gets native implementation of ReactJs – you will not need any .js or .tis files in order to use React features. Browser’s way Consider this ES6 file from ReactJs tutorial: class Clock...

View Article


Native support of JSX in Sciter

This is all about JSX that is quite popular with React and other “virtual DOMers” like Vue, Mithril. JSX in brief Essentially JSX is a notation (or embeddable DSL if you wish) that allows to use XML...

View Article


Optional Chaining in Sciter Script

I am adding the subject to the script. Optional chaining is essentially this: var street = user.address && user.address.street; Note that user.address here is an optional object and to get safe...

View Article

Security in Sciter-based applications

Please check “Security in Sciter-based applications” article of Juan Manuel Fernandez @ tarlogic. And here are recipes of how to deal with the problems explained in the article. Code injection...

View Article

Script/CSS interaction: content:prop(foo)

I am adding new feature: ability to render script DOM element property values. If you have this declaration: widget::marker { content: prop(counter); } Then in script you can update counter property of...

View Article

Image may be NSFW.
Clik here to view.

Anatomy of object/class relationship in JavaScript

As we know JavaScript (ES2015 spec) got classes. Well, kind of classes… Class declaration in ES2015 is just a syntax sugar for old Func.prototype mechanism (a.k.a. “prototype mess” for some). Let’s...

View Article


On the road to JS compatibility

First of all, about the goal… “JS compatibility” move in Sciter is NOT about creation of fully compatible JS implementation but rather to change the script to be compatible ENOUGH  so that existing JS...

View Article

End of 4.2.8.x series…

I’ve published today Sciter v.4.2.8.5 version and it is the last revision in v.4.2.8.x series. Next revisions will contain completely redesigned script compiler. New compiler uses AST as new ES6/7...

View Article


Script: arrow functions

I am adding support of so called arrow functions from ES6 specification to Sciter’s script. And there are plans for more of those, like destructuring assignment and so on. The plan is to make Sciter...

View Article

Image may be NSFW.
Clik here to view.

DOM in Sciter Script Cheat Sheet

View Article


Image may be NSFW.
Clik here to view.

Sciter Script Cheat Sheet

View Article

Image may be NSFW.
Clik here to view.

Revising assert and debug statements

assert <expr> : …; Sciter’s script has assert statement in the form: assert <expression> : <list-of-values>; Starting next version (4.1.8) this statement will be executed only if...

View Article

Image may be NSFW.
Clik here to view.

Event handling

Introduction. Event propagation Schema Sciter uses sinking/bubbling event propagation schema. It is the same schema as used in web browsers. Let’s consider the following markup: <html>...

View Article
Browsing index pages (47 articles)


Latest Images