Shreyance Jain

Javascript/Ajax/JQuery

jQuery: Unbinding specific event with namespace

If we follow the normal jQuery practices for binding and unbinding multiple jQuery events, it involves writing code again and again for each of the binding and unbinding which makes it very repetitive, specially when unbinding. Joint unbinding is also seen when you have same event bound to the same DOM element multiple times. Lets...

27-Aug-2013

Javascript/Ajax/JQuery

How to Use CRAWLME

How to implement CRAWLME? Make you ajax app use the hashbang #! instead of just hash # in urls which allows Google to crawl and index those ajax supported urls. Insert the CRAWLME middleware before your server in the chain of Connect/Express middlewares. Crawlme takes care of rest. Example: var connect = require('connect'); ...

12-Aug-2013

Javascript/Ajax/JQuery

MAKE your AJAX WEB APPLICATION INDEXABLE using CRAWLME

Recently, Programmers are more inclined towards creating web application with AJAX than doing it with static HTML pages which makes applications faster and richer. But by doing so, application loses its indexability which results in modern and user friendly yet less searchable apps. Let’s take an example of a website:  For browser/user...

12-Aug-2013

Javascript/Ajax/JQuery

Clustering in Node.js

Node.js is single threaded so it runs one process on a single CPU, as the power of Node.js is its performance and speed it doesn't seem good to use only one CPU in a multi-core system. For utilizing all the CPUs, Node.js allows us to create a network of processes that all shares the same port. Create a file named clusterExample.js ...

25-Feb-2013

Javascript/Ajax/JQuery

Simulating Static behaviour for Object Properties in JavaScript

We were facing problem at time of creating Static properties in any Object in JavaScript as there is not any direct method to create static properties. For example if we want to create a static property in an array object and we want it to be same for every other object without storing the property in objects by which object's size will...

01-Feb-2013