Categories
JavaScript

Sencha app build failed: Mixed-Mode x-compile and microload markup is currently unsupported

If you use Sencha Command tool to build ExtJs application like this: sencha app build and experience something similar to the following error [ERR] [ERR] BUILD FAILED [ERR] com.sencha.exceptions.ExBuild: Mixed-Mode x-compile and microload markup is currently unsupported [ERR] here is the solution for your problem. The problem is that there are two parallel places where […]

Categories
JavaScript

Sorting an array of Objects in JavaScript

If you have an array in JavaScript that doesn’t contain just simple numeric or string values, but objects with properties instead: var employees=[]; employees[0] = {name:”Petar”, age:32}; employees[1] = {name:”Nikola”, age:17}; employees[2] = {name:”Milutin”, age:58}; employees[3] = {name:”Slavisa”, age:62}; The employees array above is an array of objects with properties of different data types, string […]

Categories
JavaScript Meteor

Hosting #Meteor app with #Modulus

Currently I am trying/learning development with Meteor framework. My first impressions are great! Some things were never that easy as they are with Meteor, it’s super fast, made with simplicity as core philosophy… I will write about Meteor in a separate post, when I learn enough of it and try it with some real world projects. At this […]

Categories
JavaScript Mobile apps

Create online/offline proxy using #SenchaTouch

If you want to develop mobile app using Sencha Touch that will behave the same when device is online or offline, read the following: Nice and useful blog post about creating online/offline proxy in Sencha Touch

Categories
JavaScript

Proper date comparison in #JavaScript

If you want to check if some variable contains valid date in JavaScript, this is the way that works properly in all cases: isValidDate: function(d) { if ( Object.prototype.toString.call(d) === “[object Date]” ) { // it is a date, but still it could be ‘Invalid date’ which could make trouble if ( isNaN( d.getTime() ) […]