Super useful post about filtering and best practice within Backbonejs. http://tech.pro/tutorial/1519/rendering-a-filtered-backbonecollection Effectively best practice for future planning is to put filtering into the collection – but to be careful that you…
Just finished backbonejs course on Lynda (Up and Running with Backbone.js with Kai Gittens) and am super excited about getting into Backbone a bit more. At the moment I’m working…
Been working on some server side javascript of late and came up with this function below to get an initial string and mark it up differently so that when CSS…
Read More Mark up text for responsive – server side javascript
Quick and handy one to keep around – outputs the largest of 2 numbers for JS
Handy one.. to check whether or not an element is a particular type of element (for e.g.a strong element). This code checks if the first child element of subnavigation is…
Use timeout: 0, as a parameter to stop the plugin from auto rotating.. for example…
Use this to check if an element exists – I generally wrap it around a function that only needs to run on certain condition – i.e. if theres a form…
Ok so the design is to have 3 fields, 1 each for day, month, year and a datepicker button which populates these fields. ‘Im using jQuery UI here and then…
Read More Datepicker with seperate fields for day/month/year