+ BackBone.js By. Phil Sheperd. + What is BackBone BackBone is a Javascript Framework How is this different From jQuery or Prototype? Libraries vs Framework.

Slides:



Advertisements
Similar presentations
DEPARTMENT OF INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues Basics of XHTML Andy Dawson Department of Information Studies,
Advertisements

JavaScript and AJAX Jonathan Foss University of Warwick
JavaScript Part 6. Calling JavaScript functions on an event JavaScript doesn’t have a main function like other programming languages but we can imitate.
Farewell XSL, Welcome Display Templates. ”I’m a SharePoint consultant with a passion for branding and development” Elio Struyf SharePoint Consultant Xylos.
School of Computing and Information Systems CS 371 Web Application Programming jQuery.
MVVM/MVC in Client-side SPA var subTitle = { value: ‘Single page application approaches and usage’, speaker1: ‘Stanimir Todorov, Product Developer Infragistics’,
CS 898N – Advanced World Wide Web Technologies Lecture 22: Applying XML Chin-Chih Chang
CS428 Web Engineering Lecture 15 Introduction to Jquery.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
Javascript & HTML5 Intro. Why Javascript? Next big thing in online games Flash is slowly on its way out Can be coded via any text editor, flash costs.
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
CST JavaScript Validating Form Data with JavaScript.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
JQuery CS 268. What is jQuery? From their web site:
Those Who Control The Past Control The Future: The HTML5 History API Sean Adkinson Jama Software 2012 HTML5 Developer Conference.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
4.1 JavaScript Introduction
Jquery IS JQuery Jquery Example of mouseover event that shows a submenu when menu selected: $(‘#menu’).mouseover(function() { $(‘#submenu’).show();
Developing Better PhoneGap Apps Session 608 / DevLearn 2013 Daniel Pfeiffer Lead Developer / Float Mobile Learning.
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
By: Toms Linnes Mrunal Patel.  Universal  With qooxdoo you build rich, interactive applications, native-like apps for mobile devices light weight single.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
JavaScript Frameworks Presented by Kyle Goins Also see:
Backbone.js in the Front-end David Corbacho Román Ethan Winn.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Abelian Kingdom Andrew, Kelvin and Peter. What is it? A web (browser) game MORPG on Google map Login with Facebook Interact with your friends And the.
Sayed Ahmed Computer Engineering, BUET, Bangladesh (Graduated on 2001) ( ) MSc in Computer Science, U of Manitoba, Canada Linkedin: linkedin.com/in/sayedjustetclinkedin.com/in/sayedjustetc.
Play-By-Play Announcer: Todd Bashor Image credit:
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
Advanced DOM Builds on last presentation on DOM Allows you to dynamically create elements and position them on a page DOM methods/properties are W3C standard.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
Welcome to jQuery jQuery is one of many available libraries that – Provide functions for manipulating the web page With fairly good performance – Help.
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
IS2802 Introduction to Multimedia Applications for Business Lecture 07: Introduction to jQuery Rob Gleasure
Building the Simulation Computer App Session 12. Building the Simulation Learning Objectives: I can build and code a working version of my simulation.
Understanding JavaScript and Coding Essentials Lesson 8.
AJAX in Ruby-on-Rails. Ruby on Rails and AJAX AJAX can be done with just Javascript Easier if you use libraries –Prototype –SAJAX –jQuery Libraries only.
Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Introduction to JavaScript LIS390W1A Web Technologies and Techniques 24 Oct M. Cameron Jones.
Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5 Yeunyong Kantanet School of Information and Communication.
4.1. Manage and maintain JavaScript Update the UI by using JavaScript. Understanding JavaScript and Coding Essentials.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
DEV103 – Web Part Transformers – More than meets the eye By: D’arce Hess.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
JQuery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation.
What is jQuery?.
Angular JS and SharePoint
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
JavaScript: Good Practices
Ember, AngularJS, Backbone.js, Knockout, … eeem??
Scrolling Down vs. Multiple Pages
Social Media And Global Computing Managing MVC With jQuery and AJAX
Extending functionality using Collections
The Cliff Notes Version
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
JavaScript and the DOM MIS 2402 Jeremy Shafer Department of MIS
A Look Back: 2010 Phenomenex Meal Event.
Web Client Side Technologies Raneem Qaddoura
Murach's JavaScript and jQuery (3rd Ed.)
Web Programming and Design
Web Programming and Design
Murach's JavaScript and jQuery (3rd Ed.)
Introduction to ASP.NET MVC
JavaScript and the DOM MIS 2402 Maxwell Furman Department of MIS
Presentation transcript:

+ BackBone.js By. Phil Sheperd

+ What is BackBone BackBone is a Javascript Framework How is this different From jQuery or Prototype? Libraries vs Framework BackBone is a way to structure your code

+ Why/When should you use BackBone You should use BackBone to get your ‘Truth out of the DOM’. Doesn’t make sense all the time

+ Signs to use BackBone You use a lot of data attributes in your html You have a lot of hidden content to be displayed only on certain events happening You ever see a line in your js like this: $($(this).children()[1]).html().trim();

+ How is a BackBone App Structured MCV NOT MVC (Model, View, Controller) Models Data of your application Models generally have attributes Collections A collections of the models Views Generally templates rendered with underscore.js

+ Model Create a new model by calling: var Question = Backbone.Model.extend({}); Models can have default data defaults: { attribute : value } Can also have url of where to save from (to advanced for this demo)

+ Collection var Questions = Backbone.Collection.extend( { model : Question} ); It is a collection of models These can also have a rootURL but again, to advance for this demo

+ Views var CategoryView = Backbone.View.extend({ collection : Questions, template: _.template($('#column').html()) }); View can be for collections or models Templates are defined by underscore.js

+ Views and Events and Templates events : { 'click #fade' : 'clear', 'click.hint_button' : "showHint", 'click.showAnswer' : 'showAnswer’ } ' >

+ Rendering The View There is one very important function in views at it is: Render Every view has a this.el this.el is the element that is put in the dom this.$el is the jquery version of that element Lets just start coding this stuff up MORE Resources