Preliminary Software design and Development a Welcome to our Coding Day session one.

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

Web Pages and Style Sheets Bert Wachsmuth. HTML versus XHTML XHTML is a stricter version of HTML: HTML + stricter rules = XHTML. XHTML Rule violations:
Day 2 – JavaScript & PHP.  Have the hover effect display an extra image  Add an extra image for each of the tags  In your writeText() function, you.
By Khoa Quach. About Me Khoa Quach SharePoint Technologies MCTS, MCPD, MCSE Co-founder of NIFTIT Specializes in SharePoint Integration Application Development.
Twitter Bootstrap Paul Frederickson. Tonight’s Objectives Learn how to set up a bootstrap based site Become familiar with bootstrap syntax Create a framework.
 CSS ids  Pages  Sites  HTML: class=“name”  Names may define format OR content › Either works  CAN apply multiple classes to the same tag  Multiple.
Best Practices for Website Design & Web Content Management.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
USING ANGULARJS WITH SITEFINITY
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Getting Started with Adobe Dreamweaver CS6. Unit Objectives Define web design software Start Adobe Dreamweaver CS6 View the Dreamweaver workspace Work.
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Label production Solution with Label Gallery programs Label Gallery is used for general label design and print GalleryData is used to create small database.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
Single Page Applications with AngluarJS Bill Wolff Rob Keiser
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
SUNY Polytechnic Institute CS 490 – Web Design, AJAX, jQueryAngularJS AngularJS is a client-side JavaScript Framework for adding interactivity to HTML.
Eat Your Words! Creating webpage Layout. CONTENT The Layout of a Webpage HEADER FOOTER Each of these sections represents a ‘div’ (or divider). By linking.
Server-side Scripting Powering the webs favourite services.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
© 2012 Boise State University1 WordPress Training February 14, 2013.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
SharePoint Branding with Design Manager. About James 7 years of SharePoint 2007, 2010, 2013 On-prem deployment planning, infrastructure setup, governance.

Introduction to HTML. What is HTML?  Hyper Text Markup Language  Not a programming language but a markup language  Used for presentation and layout.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Wijmo Troy Taylor. What is Wijmo? -Wijmo is a kit of over 40 UI widgets, optimized for client-side web development. -HTML5 -jQuery -CSS3 -SVG.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Creating a Web Site Review of Concepts. Templates Templates are special HTML files that are used to quickly create pages on a web site. They contain the.
Web Design Part I. Click Menu Site to create a new site root.
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Introduction to Angular James Kahng. Terms Framework Template/environment constructed in the language where you fill in details with code Library Set.
Walkthrough example including SAS output How to create a mobile WebApp? PhUSE / 12. October 2015 / Katja Glaß BHC 4:3 Template 2010 June 2014Page 1.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
Adxstudio Portals Training
HTML and CSS HTML is used for the content of web pages CSS is used for the style of the web pages You are going to learn how they can be combined to create.
Chapter 1 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
CSU Extension Webpage Template Session 4 February 2010.
Craig Pelkie Copyright © 2015, Craig Pelkie ALL RIGHTS RESERVED Use RPG to Mobilize your IBM i.
Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5 Yeunyong Kantanet School of Information and Communication.
Copyright © 2013 MyGraphicsLab / Pearson Education DREAMWEAVER INTERFACE MYGRAPHICSLAB: ADOBE DREAMWEAVER CS6.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Creating a Google Site For a Digital Portfolio Purpose.
Cheryl Wolfe Web Services Administrator Tampa-Hillsborough County Public Library James Day Electronic Services Librarian Embry-Riddle Aeronautical University.
COMP 143 Web Development with Adobe Dreamweaver CC.
By peter cox HSC SDD Project Mobile Application Development.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
Weebly is Your Friend. * To Enhance And Promote Your Curriculum * To Provide A Student Resource * Add Efficiency to Your Planning * Informational * Promote.
WELCOME TO WEB PAGE DESIGN- BEGINNERS COURSE Mrs Barry.
How to Apply PDF in Flipbook on Website. Description If you are finding solution for applying PDF in flipbook mode on website, and adding multimedia items.
Tizen Web Application with TAU
Web Basics: HTML/CSS/JavaScript What are they?
Dreamweaver – Setting up a Site and Page Layouts
Objectives Create a folder in Google Drive.
Chapter 2 Developing a Web Page.
Human Computer Interaction
PHP Training at GoLogica in Bangalore
Angular (JS): A Framework for Dynamic Web Pages
Secure Web Programming
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Training & Development
Common Page Design Elements
© 2017, Mike Murach & Associates, Inc.
Presentation transcript:

Preliminary Software design and Development a Welcome to our Coding Day session one

Preliminary Software design and Development Aim ◦ Build a mobile web app ◦ Understand how create a SPA (single page application) using JQuery Mobile ◦ Use HTML5 LocalStorage ◦ Use Angular to implement CRUD ◦ Upload our finished Mobile App to Drop-Box to view Need ◦ JQuery Mobile - APP Template ◦ Coding Day file Drop Box account

Angular was created by Misko Hevery and it's maintained by Google. Its current stable version is Angular is a structural framework that binds your HTML (View) to your MODEL (data) for dynamic web apps. Angular supercharges HTML, with custom elements called directives, to create dynamic views in web-applications. Geared towards SPA (single page apps) and CRUD (create, read, update, delete), think database frontends

Angular was built with the CRUD application in mind. Luckily CRUD applications represent the majority of web applications.

MVVM basically includes 3 things: 1. Model Model is nothing but data. 2. ViewView represents this data. Its our HTML 3. View ModelController mediates between the two. Specific data fro specific view

DirectivesThey apply special behaviour to attributes or elements in the HTML. Eg ControllerThis is where you create your ‘business logic’ behind views ScopeScope is the glue between application ‘controller ‘ and the ‘view’. Two-way data-binding is best described as a full-circle of synchronised data: Update the Model and it updates the View, update the View and it updates the Model.

HOME VIEW EDIT/DELETE REPORTS SPA SINGLE PAGE APPLICATION Index.html PAGES

TO CREATE THE PAGE Line 38: data-role=”page”: This tells jquery mobile to display this div as a PAGE id-“home” : The id define the LINK to this page eg home Lines 38 to 74 define the HOME Page

SIDE NAVIGATION PANEL Line 40 MENU in List view home Add href="#homeNav"

PAGE HEADER Line 53: MAIN CONTENT Line 58: FOOTER Line 71: PAGE CLOSING DIV TAG Line 74:

Have we included all the framework libraries we need? JAVASCRIPT JQUERY JQUERY MOBILE CSS STYLE SHEETS Custom theme – created with Theme roller Slider CSS ANGULAR OTHER JAVASCRIPT LIBRARIES ngStorage (local Storage) Slider (Slider) YOUR OWN CONTROL logic

Add the Angular directive: “ng-app=app” to the HTML tag This ng-app directive auto-bootstraps your AngularJS app. Line 8: How to make your web app work on Mobile devices Add this html tag to your page in between the: tags Line 12: Index.html page

Add directive called ‘reviewController’ This directive defines a “Controller” to be bound with the “view” which is your home page Line 39: Add Image Add this image to the main body of your page. How to make your image work on Mobile devices Line 35: HOME page

Connect the VIEW to our CONTROLLER Line 101: Add Directive ng-controller="reviewController" to the main page div tag TASK: Answer the questions about the Form Fields ADD page Add ADD BUTTON ( directive ng-click)

app.js var app = angular.module('app',['ngStorage','ui-rangeSlider']); app.controller('reviewController', function($scope,$localStorage) { }); This is where we put our logic to define our views This is where we put our logic to define our views

app.js $scope.storage = $localStorage.$default({ myReviews: [{ name: "Blade Runner“, genre: "Science Fiction", review: "Realistic furture sci fi", dor: "23/6/2015", rating: "9" }] SCOPE VIEW CONTROLLER --SET THE DEFAULT DATASOURCE--

app.js --PAGE: ADD REVIEW function-- $scope.addMyReview = function () { var AddReview = { name: $scope.name, } $localStorage.myReviews.push(AddReview); } Save the Form Variables to an Object called AddReview PUSH the AddReview object to Localstorage

MOBILE PAGE: VIEW Connect the VIEW to our CONTROLLER Line 152: Add Directive ng-controller="reviewController" to the main page div tag

MOBILE PAGE: VIEW Search: <ul ng-repeat="r in storage.myReviews | filter:query“ <img src="images/{{r.mediaType}}.jpg" {{r.name}} Media Type: {{r.mediaType}} Review: {{r.review}} Date of review: {{r.dor | date:"dd MMM yyyy " }} Rating: {{r.rating}} / 10

MOBILE PAGE: VIEW EDIT/DELETE Connect the VIEW to our CONTROLLER Line 201: Add Directive ng-controller="reviewController" to the main page div tag

app.js --PAGE: EDIT & DELETE functions - $scope.displayEdit = function (index) { $scope.index = index; $scope.name = $scope.storage.myReviews[index].name; $scope.mediaType = $scope.storage.myReviews[index].mediaType “” “” } $scope.saveEditReview = function (index) { $scope.storage.myReviews[index].name = $scope.name; $scope.storage.myReviews[index].mediaType = $scope.mediaType; “” “” }

app.js --PAGE: EDIT & DELETE functions - $scope.deleteReview = function (index) { $scope.index = index; }; $scope.deleteReviewYes = function (index) { $scope.storage.myReviews.splice(index, 1); }; // end deleteProductYes

MOBILE PAGE: REPORTS Show report {{report}}

data = $scope.storage.myReviews; var movies = 0; var books = 0; for(var i = 0; i < data.length; i++) { if(data[i].mediaType == "Movie"){ movies = movies + 1 } if(data[i].mediaType == "Book"){ books = books + 1 } --PAGE: REPORTS functions -

Create your own Reports 5 top rating books Number of Science Fiction books reviewed All movies and Books reviewed in 2014