Convert datetime in a timezone to UTC Convert UTC to datetime in a particular timezoneRead More Timezone conversions using MomentJS
Everyone who are using jQuery will know that sometimes the jQuery events(click, bind, live, on etc ) may fire more than once due to event bubbling. For example, consider the following code snippet : Due to event bubbling, a single click on the .button can trigger the click function multiple times. A detailed explanation regarding…Read More Prevent jQuery events from firing multiple times
Event bubbling and capturing are two ways of event propagation in HTML DOM. In bubbling the event is first captured and handled by the inner most element and then propagated to outer elements. In capturing the event is first captured by the outer most element and propagated to the inner most element. During the time…Read More Event Bubbling and Capturing
Backbone routers are used for routing your applications URL’s when using hash tags(#). In the traditional MVC sense they don’t necessarily fit the semantics. Though a Backbone “router” is still very useful for any application/feature that needs URL routing/history capabilities. Defined routers should always contain at least one route and a function to map the…Read More What are routers in Backbone.js?
The following code will help you share custom details to facebook page. link : Use the url to be shared in facebook so that clicking on the url will take the user to the intended page. picture : Image to be shared. name : title of the facebook share. description : Description of the content…Read More Share title, description and image on Facebook
Recently i came across a rather annoying bug in IE. There were numerous script error windows popping up in IE versions. This was in IE10 even. While the code worked well for all other browsers including Mozilla, Chrome, Safari it sucked big time in IE. To add to my woes, the error was inside framework…Read More Handling Script errors in Internet Explorer(IE)
Placeholders dont work in browsers like IERead More Placeholder Alternative for IE
Ive found music websites and lyrics websites using some kind of plugins where when i select a portion of html content from the page, a copyright text gets appended at the end of the copied text. Always wondered how this was possible and the following is the source code for the same. It does not…Read More Append a copyright text when user selects a portion from the web page
In one sentence a Collections can be referred to as an ordered set of models. As its name suggests, it is a collection of models in an orderly way. It can be used in situations such as; Model: Student, Collection: ClassStudents Model: Todo Item, Collection: Todo List Model: Animal, Collection: Zoo Typically your collection will…Read More What are Collections in Backbone.js?
What is Backbone.js? Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface. Introduction The Evoluton of Web Application has been gradual over the…Read More Backbone.js – Complete tutorial for beginners
What is Bootstrap? Bootstrap is a front-end toolkit for rapidly developing web applications. It is a collection of CSS and HTML conventions. It uses some of the latest browser techniques to provide you with stylish typography, forms, buttons, tables, grids, navigation and everything else you need in a super tiny (only 6k with gzip) resource.…Read More Bootstrap – at a glance