CSSS! and computational complexity of selectors.

Lets say we have following markup: <ul> <li>First</li> <li>Second (with <a href=#>hyperlink</a>)</li> <li>Third</li> <li>Fourth (with <a href=#>hyperlink</a> too)</li> </ul> and the styling task: all <li> that have <a> elements inside have yellow background. If we would have hypothetic selector :with-child(selector) then we could write this as: li:with-child(a:link) { background:yellow; } Problem with this selector lies…

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…

Talks about HTMLayout

Here is a translation of the interview in Russian I gave to Alexander Sergeev from the HumanoIT. Alexander Sergeev(AS) says: My long time dream – to write a shareware program and sell it through the Internet: cash out, Brazil, Maldives, Tokyo, beaches, skiing, casinos… ahhh. This summer I almost brought it to reality… all thanks…

Designing

I am designing <richtext> behavior for htmlayout/sciter… So far I like the way it allows to edit the text. There are interesting usability problems bubble up sometimes… Let’s say you have following document: <body> <pre> …. </pre> <table> …. </table> </body> And now imagine that you need to insert some text (paragraph) between the table…

behavior:htmlarea (WYSIWYG editor) in h-smile core.

My initial idea was to implement behavior:htmlarea (WYSIWYG editor) as editing behavior that manipulates elements in existing DOM tree. This approach is not working for many reasons. Main reason is following: In presence of CSS the same rendering result (pixels in the view) can be achieved in many ways – by using various CSS attributes….

Web Application Technologies, poll.

Poll "Web Application Technologies" on RSDN. Poll was addressed to professional web developers with the question: Modern Web Application uses following technologies (UA side). What do you think makes sense to improve in the very first place? HTML – for example to design HTML v.5 CSS – for example to add layout managers. Scripting (JS…