Tagjavascript

Simple “get my location” JS snippet

Get your location with a modern browser is really simple. Open a console (firebug) and paste the following code.

function showPos(position) {
console.log(position);
}
var loc = navigator.geolocation.getCurrentPosition(showPos);

Let’s have a try.

 

Few useful articles and resources

http://dailyjs.com/
http://shichuan.github.com/javascript-patterns/
http://xhalent.wordpress.com/2011/05/12/javascript-closures/

Some useful readings

I have decided to do some project with MongoDB, NodeJS and HTML5. It will be a very interesting entertainment based startup.

I would like to share my personal readings on the topics above.

Here comes:

HTML5 interactive demos

http://html5demos.com/

HTML5 data-*

http://ejohn.org/blog/html-5-data-attributes/

HTML5 reading local files

http://www.html5rocks.com/en/tutorials/file/dndfiles/

Javascript DI

http://misko.hevery.com/2010/05/29/dependency-injection-and-javascript-closures/

Object to primitive conversion in javascript

http://www.adequatelygood.com/2010/3/Object-to-Primitive-Conversions-in-JavaScript

Javascript garden

http://bonsaiden.github.com/JavaScript-Garden/

NodeJS beginner guide

http://www.nodebeginner.org/

Mongoose ODM

http://mongoosejs.com/

© 2014 Joshy's blog

Theme by Anders NorenUp ↑