Sayed Ahmed Computer Engineering, BUET, Bangladesh (Graduated on 2001) (1996 - 2001) MSc in Computer Science, U of Manitoba, Canada Linkedin: linkedin.com/in/sayedjustetclinkedin.com/in/sayedjustetc.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Using Evernote and Google Docs in your web or mobile application (and potentially Dropbox and Skydrive) By Peter Messenger Senior Developer – Triple Point.
John Culviner johnculviner.com DEMO CODE:
MVVM/MVC in Client-side SPA var subTitle = { value: ‘Single page application approaches and usage’, speaker1: ‘Stanimir Todorov, Product Developer Infragistics’,
Front and Back End: Webpage and Database Management Prepared by Nailya Galimzyanova and Brian J Kapala Supervisor: Prof. Adriano Cavalcanti, PhD College.
Multiple Tiers in Action
Social Internet of Things Humans are connected to Internet. – Through Social Networking (e.g., facebook, foursquare, LinkedIn) Internet.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Inline, Internal, and External FIle
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
BTWmaps.  Why “By the way”?  DSD environment  About us  Requirements  Architecture design  Results.
Eric Westfall – Indiana University Jeremy Hanson – Iowa State University Building Applications with the KNS.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
Javascript: More features B. Ramamurthy 7/4/2014B. Ramamurthy, CSE651C1.
Sayed Ahmed BSc. Engineering in Computer Science and Engineering, BUET, Bangladesh MSc. in Computer Science, University of Manitoba, Canada Owner/Architect/Developer.
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Fall CIS 764 Database Systems Design L8. Web ….
WEB SCIENCE. What is the difference between the Internet and the World Wide Web? Internet is the entire network of connected computers and routers used.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 1 - (Re) Introducing JavaScript Modern JavaScript Design And Develop Copyright © 2012 by.
Java Web Development with NetBeans IDE -- Kai Qian Chapter 5 JavaServer Faces (JSF) Technology.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Sayed Ahmed Computer Engineering, BUET, Bangladesh MSc, Computer Science, U of Manitoba, Canada Owner/President/Architect/Developer Justetc (Just et cetera)
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.
.  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection.
Templating, Routing, lodash Extending functionality using Collections SoftUni Team Technical Trainers Software University
+ BackBone.js By. Phil Sheperd. + What is BackBone BackBone is a Javascript Framework How is this different From jQuery or Prototype? Libraries vs Framework.
Getting started with ASP.NET MVC Dhananjay
Ajax for Dynamic Web Development Gregory McChesney.
Canopy walk through Single-Page Apps (SPAs) Benjamin Howarth Freelancer, Code Gecko Umbraco UK Festival, Fri 30 th Oct 2015 CODE GECKO.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
CO1552 – Web Application Development Further JavaScript: Part 1: The Document Object Model Part 2: Functions and Events.
CS 4720 Model-View-Controller CS 4720 – Web & Mobile Systems.
HTML Links HTML uses a hyperlink to another document on the Web.
Google Map Engine Can export images to Map Engine from Earth Engine
 An essential supporting structure of any thing  A Software Framework  Has layered structure ▪ What kind of functions and how they interrelate  Has.
Introduction  “M” “V” “C” stands for “MODEL” “VIEW” “CONTROLLER”. ASP.NET MVC is an architecture to develop ASP.NET web applications in a different manner.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Personalizing Web Sites Nasrullah. Understanding Profile The ASP.NET application service that enables you to store and retrieve information about users.
Introduction to Javascript. What is javascript?  The most popular web scripting language in the world  Used to produce rich thin client web applications.
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Basics Components of Web Design & Development Basics, Components, Design and Development.
 Why “By the way”?  DSD environment  About us  Requirements  Architecture design  Results.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
Jim Fawcett CSE686 – Internet Programming Spring 2014
ASP MVP Web applications and Razor
Tracking and Booking Taxi
CMPE 280 Web UI Design and Development October 24 Class Meeting
Haritha Dasari Josue Balandrano Coronel -
JavaScript: ExpressJS Overview
SharePoint Cloud hosted Apps
Introduction to JavaScript
…and web frameworks in general
A second look at JavaScript
Secure Web Programming
HYPERTEXT PREPROCESSOR BY : UMA KAKKAR
Identify Different Chinese People with Identical Names on the Web
HCI Project.
…and web frameworks in general
Introduction to JavaScript
An introduction to jQuery
An introduction to jQuery
Client-Server Model: Requesting a Web Page
Web Client Side Technologies Raneem Qaddoura
Presentation transcript:

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 Personal:

I do not know everything about Backbone.js But Backbone.Js is not Rocket Science

 Some JavaScript Frameworks  javascript-mvc-frameworks-reviewed/ javascript-mvc-frameworks-reviewed/  JavaScript MVC Frameworks 

 Why BackBone.js  single page applications are the future  Esp for mobile, tablet, and similar devices  And such devices are pushing the trend  web-apps-single-page-applications/ web-apps-single-page-applications/   apps-is-ready-isomorphic-javascript/

 Why Backbone  enforces that communication to the server should be done entirely through a RESTful API  The web is trending such that all data/content will be exposed through an API  Why?  browsers are no longer the only clients  Other clients such as mobile devices, tablet devices, Google Goggles and electronic fridges etc. are increasing very rapidly

 Benefits of Backbone  incredibly small library  Provide a significant amount of functionality and structure  Essentially an MVC for the client  Allows you to make your code modular

 Models in Backbone.js  According to Backbone.js Team  Models are  the heart of any JavaScript application,  containing  the interactive data  as well as a large part of the logic surrounding it:  conversions,  validations,  computed properties, and  access control.

 Person = Backbone.Model.extend({  initialize: function(){  alert("Welcome to this world");  }  });  var person = new Person;

 Person = Backbone.Model.extend({  initialize: function(){  alert("Welcome to this world");  }  });  var person = new Person({  name: "Thomas",  age: 67  });  // or we can set afterwards, these operations are equivalent  var person = new Person();  person.set({ name: "Thomas", age: 67});

 var age = person.get("age"); // 67  var name = person.get("name"); // "Thomas“  var child = person.get("child"); // 'Ryan'

 Person = Backbone.Model.extend({  defaults: {  name: 'Fetus',  age: 0,  child: ''  },  initialize: function(){  alert("Welcome to this world");  }  });

 var person = new Person({  name: "Thomas",  age: 67, child: 'Ryan‘  });  var age = person.get("age"); // 67  var name = person.get("name"); // "Thomas"  var child = person.get("child"); // 'Ryan'

 Person = Backbone.Model.extend({  defaults: {  name: 'Fetus',  age: 0,  child: ''  },  initialize: function(){  alert("Welcome to this world");  },  adopt: function( newChildsName ){  this.set({ child: newChildsName });  }  });

 var person = new Person({  name: "Thomas", age: 67, child: 'Ryan‘  });  person.adopt('John Resig');  var child = person.get("child"); // 'John Resig'

 Person = Backbone.Model.extend({  defaults: {  name: 'Fetus', age: 0  },  initialize: function(){  alert("Welcome to this world");  this.on("change:name", function(model){  var name = model.get("name"); // 'Stewie Griffin'  alert("Changed my name to " + name );  });  }  });

 Notice:  urlRoot: '/user‘  Assume: The server has implemented a RESTful URL /user which allows us to interact with it  Assume there is a user table in the DB side  /user url interacts with the user table  var UserModel = Backbone.Model.extend({  urlRoot: '/user',  defaults: { name: '', '' }  });

 // Here we have set the `id` of the model var  user = new Usermodel({id: 1});  // The fetch below will perform  In the url: [GET] /user/1  // The server should return the id, name and from the database  user.fetch({  success: function (user) {  alert(user.toJSON());  }  })

 var person = new Person({ name: "Thomas", age: 67});  var attributes = person.toJSON(); // { name: "Thomas", age: 67}  /* This simply returns a copy of the current attributes. */  var attributes = person.attributes;  /* The line above gives a direct reference to the attributes and you should be careful when playing with it. Best practise would suggest that you use.set() to edit attributes of a model to take advantage of backbone listeners. */

 Backbone views  are used to reflect what your applications' data models look like  They are also used to listen to events and react accordingly.  Our Focus on Views  view functionality and  how to use views with a JavaScript templating library,  specifically Underscore.js's _.template.Underscore.js's _.template

 var search_view = new SearchView({ el: $("#search_container") });  With el, backbone view becomes the owner of the div#search_container

 The Template

 Backbone routers are used for routing your applications URL's when using hash tags(#).

 Backbone collections are simply an ordered set of modelsmodels