"Selectors API Level 1" document started in 2006 has reached status of W3C Recommendation these days. Which means we may see it implemented uniformly across all browsers ( those browsers that are alive yet 😉 ). But I am disappointed by features provided by this API. It de-facto contains 6 methods but only two…
Month: February 2013
Use of CSS constants in script.
In Sciter you can define CSS constants using @const declarations like this: <style> @const TEST_STR:”test”; @const TEST_COLOR: rgb(128,0,0); @const TEST_NUMBER: 128; </style> and use them not only in CSS ( as @TEST_COLOR for example ) but also in script using accessor like this: var test_str = self.style.constant(“TEST_STR”); If you think that self.style.constant is too narrative…
Can I get checkboxes back somehow?
I think it is something wrong with modern variations of checkboxes. Consider this iOS version: It is not clear is it in “On” state or you need to click on “On” label to switch it on? But people from Windows 8 usability team went even further with their version: Am I the only one who…
TIScript, hidden treasures: for/in loop
Integer data type in TIScript is iteration-able, means the following works in TIScript: for(var i in 100) stdout.println(i); The code above will print numbers from 0 to 99 in stdout.