Friday, October 10, 2014

Node.js - Getting started



Node.js is a cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows and Linux with no changes.

Node.js applications are designed to maximize throughput and efficiency, using non-blocking I/O and asynchronous events. It is commonly used for real-time applications due to its asynchronous nature. Node.js internally uses the Google V8 JavaScript engine to execute code, and a large percentage of the basic modules are written in JavaScript. Node.js contains a built-in asynchronous I/O library for file, socket, and HTTP communication, which allows applications to act as a Web server without software such as Apache HTTP Server or IIS.


Step 1) got to node.js website   and download 32bit or 64 bit installer

Step 2) After successful installation open command prompt windows -> Run -> cmd

> node console.log("hello world");

This will print hello world in the terminal.


Thursday, October 9, 2014

ExtJs - How to override refresh button in grid's paging toolbar

Refresh button in paging toolbar can be overridden to write you own logic


{
    xtype: 'pagingtoolbar',
    doRefresh: function(){
        if(arguments.length>0){
            //callfromclickingonrefreshbutton
        }else{
            //whenyoucalldoRefreshexplicitytorefreshthelistExt.toolbar.Paging.prototype.doRefresh.apply(this,
            arguments);
        }
    }
}