Monday, September 26, 2011

Replacing space with underscore in Javascript

I tried providing a title for a custom javascript dojo component but it took only the first word i guess this was because space was not being handled properly so i searche dfor javascript code to replace space with &nbsp. Following is the code

.split(' ').join('_')

No comments:

Idea for patent

Return machine Id  and use this for routing future requests . This will give cache locality. The ui/ mobile app should use this I'd f...