Javascript Archive

If you have tried to connect to a NodeJS socket IO server from Adobe Flash or Flex using Flash Socket,  you might have experienced connection error and seen a warning in the NodeJS server console saying ‘Unknown Transport : “flashsocket”’. This can be solved by enabling the ‘flashsocket’ transport method which  is disabled by default in the newer versions of SocketIO. That’s it. Happy coding

Read More...

Some of us might have read about Mozilla foundation coming up with a new mobile operating system which will be developed in HTML5, called Firefox OS. And we all thought that it will be one big HTML5 web page when booted up! Well its much more than that. Its a complete mobile operating system now. Mozilla now have a working emulator of the OS called r2d2b2g. The OS can be previewed on Firefox browser as an add on. Its a 61.2 Mb download and once done you can test it by selecting Tools > B2G Desktop. BTW b3g stands for ‘Boot to Gecko’. With the OS, Mozilla is targeting markets that cannot afford a smartphone like the iPhone or Android. The complete OS is written [&hellip

Read More...

Minimalism has become a common feature in the Web 2.0 world. Everything including forms have now become minimalistic. Putting labels alongside form fields has become too Web 1.0 ish. Most websites these days use watermarks or placeholders to provide hints to users on  how to fill a form field. Now if you have just migrated from the Web 1.0 to Web 2.0 and are still wondering how to place watermarks or placeholders in your forms, read on. Method 1 : Changing value of the text field based on events This method has been used by many websites as it is easy to implement and is the most browser compatible method. Basically you will be adding event listeners for the ‘onfocus’ and ‘onblur’ events of the [&hellip

Read More...