12. Data Attributes Ross Scott 7 Var id = $(this).children(‘.hiddenId’).first().val(); <input data-slotid=“3“ /> Var id = $(this).data(‘slotid’); 11/06/2011
13. Local Storage Ross Scott 15/02/2011 8 if (checked) { localStorage['track:' + slotId] = sessionId; } else { localStorage['track:' + slotId] = null; }
26. jQuery Mobile Ross Scott 17 Anatomy of a Page: <div id=“home” data-role="page"> <div data-role="header">...</div> <div data-role="content">...</div> <div data-role="footer">...</div> </div> Navigation: $.mobile.changePage(‘#home’); 11/06/2011
27. jQuery Mobile Ross Scott 18 Lists: <ul data-role="listview" data-inset="true“> <li data-role="list-divider“>15:40 to 16:40</li> <li href=“#speakerA”>This Androids Life<li> </ul> $('#lst’).listview('refresh'); 11/06/2011
28. jQuery Mobile Ross Scott 19 Links & Buttons: <a href=“#home" data-role="button">Home</a> <a data-role="button" data-icon="delete">Delete</a> <select data-theme="b”> <option>Agenda</option> <option>My Day</option> <option>Speakers</option> </select> 11/06/2011