This Time One more presentation Assignment 3 – questions? No, seriously, ask questions. I like mobile. Recap based on dot-voting – JSON-P and Proxies –

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

CS193H: High Performance Web Sites Lecture 17: Rule 14 – Make Ajax Cacheable Steve Souders Google
JavaScript and AJAX Jonathan Foss University of Warwick
Philly.NET Hands-On MVC Razor, HTML5, CSS3 Rob Keiser, Bill Wolff.
This Time Assignment 1 Grades COB Today Assignment 3 – No you don't need to have it geo-enabled. Plenty of other cool mobile-only things. Assignment 2.
Web Page Behavior IS 373—Web Standards Todd Will.
Today Microformats and a sprinkling of RDF Everyone good with SVN? Everyone checked something in? No? Try now. Mobile – Functionality – UX If you get too.
Escaping Characters document.write(). Learning Objectives By the end of this lecture, you should be able to: – Recognize some of the characters that can.
Inline, Internal, and External FIle
More APIs: Web Services CMPT 281. Announcements Project milestone Lab: – Web services examples.
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
Creating Databases applications for the Web Reprise. Basic HTML review, forms Preview: Server side vs client side Classwork: create HTML forms and check.
Search Engine Optimization With Rich Media Pete LePage Sr. Product Manager, Microsoft
Web Services & Widgets Godmar Back. Mash-Ups Applications that combine information from different sources in one web page Different architectural choices.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
JQuery CS 268. What is jQuery? From their web site:
Databases with PHP A quick introduction. Y’all know SQL and Databases  You put data in  You get data out  You can do processing on it very easily 
SUNY Polytechnic Institute CS 490 – Web Design, AJAX, jQueryAngularJS AngularJS is a client-side JavaScript Framework for adding interactivity to HTML.
Krerk Piromsopa. Web Caching Krerk Piromsopa. Department of Computer Engineering. Chulalongkorn University.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
CHAPTER 2 HTML & HTML5 II อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
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.
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
Review IDIA 619 Spring 2013 Bridget M. Blodgett. HTML A basic HTML document looks like this: Sample page Sample page This is a simple sample. HTML user.
Getting Started with Canvas IDIA Spring 2013 Bridget M. Blodgett.
JMD2144 – Lesson 4 Web Design & New Media.
MIS 425 Lecture 3 – HTML 5 and CSS Instructor: Martin Neuhard
Best Practices for Coding April 14, Best Practices Keep it simple –Plain Old Semantic HTML (POSH) Don’t recreate styles already in the EPA style.
Creating Webpage Using HTML
JavaScript – The DOM JavaScript is object based The browser is object based – We can access the browser's objects in the same way we did JavaScript's Two.
 HTML is hypertext markup language. It is a way for people to display their information with more complex pictures and text displays. Before HTML, messages.
Department Name (View Master > Edit Slide 1) JQuery I took these slides from the site because they were pretty good looking.
Graduate School of Library and Information Science LIS 753 Introduction to HTML 5 By: Yijun Gao Week Three.
Unit 1 – Improving Productivity Instructions ~ 100 words per box.
HTML5 AND THE FUTURE JAVASCRIPT PLATFORM Marcelo Lopez Ruiz Senior Software Design Engineer Microsoft Corporation.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Putting Performance Best Practices Together to Create the Perfect SPA Chris Love2Dev.com.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Loops.  (No Quiz)  Hand in Assignment #1  Last chance for Q+A on the midterm  Loops 2.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Student Pages
JavaScript Challenges Answers for challenges
INFO 344 Web Tools And Development CK Wang University of Washington Spring 2014.
There are many holidays. At my school some of the holidays we celebrate are.
Radio Buttons.  Quiz  Radio Buttons  Check boxes 2.
Review of Previous Classes Declaring Variables - var myVar:DataType = value Data Types – Number, uint, String, Boolean Functions – parameters, return.
October 7 th, 2010 SDU Webship. What did we learn last week? jQuery makes it really easy to select elements and do stuff with them. jQuery can process.
Check Boxes. 2 Check boxes  Image from:  HTML:  Each box gets it's own.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Browser Compatibility Testing, using different browsers Conditional Statements.
TNPW1 Ing. Jiří Štěpánek.  In current version (XHTML 1.0 strict)  No multimedia elements  No semantics elements  Only few input types  Only few document.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Day 22, Slide 1 CSE 103 Day 22 Non-students: Please logout by 10:12. Students:
CACHING TO IMPROVE PERFORMANCE
JavaScript, AJAX and JSON MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/9/2016.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
JavaScript Part 1 Introduction to scripting The ‘alert’ function.
PHP (Session 2) INFO 257 Supplement.
SPC Developer 6/10/2018 © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Form Validation and AJAX
Introduction to JavaScript
A second look at JavaScript
Introduction to JavaScript
Web Client Side Technologies Raneem Qaddoura
Web Programming and Design
Web Programming and Design
Presentation transcript:

This Time One more presentation Assignment 3 – questions? No, seriously, ask questions. I like mobile. Recap based on dot-voting – JSON-P and Proxies – Mobile UX – JS OOP Next Up

JSON-P and Proxies 1. Gimme 2. Ok here. PS go get Data 3. I was told to get this BUT I'M NOT ALLOWED!

3. I was told to get this So I load it like a JavaScript Library And it plays nice by passing the results to a function of my choosing JSON-P and Proxies 1. Gimme 2. Ok here. PS go get Data -P ?callback=LARRY LARRY({THEDATA}); Requires the place you are getting the data from to play nice and have server-side code, which means harder to cache and scale…

JSON-P and Proxies 1. Gimme 2. Ok here. PS go get Data 3. Ok, but you have to get it for me 4 Fine. 5. Here you go

proxy.php <?php header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul :00:00 GMT'); header('Content-type: application/json'); $url = ' http_build_query(array('method'=>$_REQUEST['method'], 'format'=>'json', 'api_key'=>$_REQUEST['api_key'], 'text'=>$_REQUEST['text'])); echo file_get_contents($url); Avoid any caching Browser hint, might not be needed Build the POST or GET request, careful with what gets passed through Spit it back out

Mobile UX Everyone is obsessed with sliding transitions So they put all the content in one page and get fancy JS- powered CSS to bounce around. With hardware-accelerated animations That is cross-device compatible Which is actually kinda neat But means more AJAX to load data without bouncing between pages /multipage-template.html

JS OOP Do you need it? Are you trying to over-do it? Are you sure? Sounds like a lot of work for a 3-week project… var timObject = { property1 : "Hello", property2 : "MmmMMm", property3 : ["mmm", 2, 3, 6, "kkk"], method1 : function(){ alert("Method had been called" +this.property1); } };

But that was just one object function cat(name) { this.name = name; this.talk = function() { alert( this.name + " say meeow!" ) } cat1 = new cat("felix"); (Hey, isn't that just a function? Yes. The "new" is the special part)

Why JS is strange cat.prototype.changeName = function(name) { this.name = name; } Yes, you can go back and add new stuff to the parent "class" by using "prototype". But, again, if you're doing this you might be over-doing it.

HTML5 Semantic Tags Audio/Video Local Storage Geo Location …what else do you want to know?

HTML5: Nice Semantic Markup Some Text Some Text

HTML5: Cooler Forms tml5forms/ tml5forms/ – Types: tel, search, , date – Attributes: placeholder, pattern, required

HTML5: Local Storage Really basic: key/value pairs …but JSON is a really nice way to encode an object as a String… so really, you can stuff anything in there. Perfect for preferences, user names, search results, etc. As long as it all fits in 5 MB

HTML5: Canvas Why? Use Vis instead unless you need very low- level drawing access. (perfect segue)

Jump into Vis (or oAuth?) Just do your own w/ Canvas – Fast easy graphics, no fuss – – JavaScript data-visualization-libraries/ data-visualization-libraries/ – Super fast. Nice force-directed layout. – very slick, nice oAuth Nice API, acts like a DB Public Datasets, so don't be hiding anything – –