Mobile and web design development (Android, iPhone, WordPress)
Google+TwitterLinkedinFacebook
Subscribe
HomeJavascript

Javascript

Palm’s Mojo SDK, aka webOS SDK, now available

I’ve just read that Palm’s Mojo SDK, the software development kit for it’s Palm Pre mobile phone, is now available for download. You can read the details at Connected Phone. To create software applications on the Palm webOS is probably not any different than creating your web applications since it uses HTML, CSS and JavaScript.

As an aside, do you know that the core of the webOS runs on Linux, an open sourced operating system? Also do you know that the developer site of Palm’s webOS uses Joomla while the developer blog uses WordPress — just some trivia facts for you. :-)

How to check if a Javascript variable is an array

Looking for the simplest way to check if a Javascript variable / object is an array? Here’s a simple way on how to check for an Array variable in javascript:

function isArray(variable) {
if (variable.constructor == Array)
return true;
else
return false;
}

or better yet, just do this:

function isArray(variable) {
return (variable.constructor == Array);
}