User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.

Slides:



Advertisements
Similar presentations
Part 2.  Arrays  Functions  Passing Variables in a URL  Passing variables with forms  Sessions.
Advertisements

User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
ELearning Solutions eLearning Solutions The business of education is learning.
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
The Web Warrior Guide to Web Design Technologies
9. AJAX & RIA. 2 Motto: O! call back yesterday, bid time return. — William Shakespeare.
JavaScript Forms Form Validation Cookies CGI Programs.
Session Management A290/A590, Fall /25/2014.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
JQuery. What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversing and manipulation event handling.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Chapter 6 DOJO TOOLKITS. Objectives Discuss XML DOM Discuss JSON Discuss Ajax Response in XML, HTML, JSON, and Other Data Type.
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
MIT AITI 2004 JSP – Lecture 2 Get and Post Requests.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
Interactive Web Application with AJAX
JavaScript & jQuery the missing manual Chapter 11
Databases.  Multi-table queries  Join ▪ An SQL JOIN clause is used to combine rows from two or more tables, based on a common field between them. 
SUNY Polytechnic Institute CS 490 – Web Design, AJAX, jQuery Web Services A web service is a software system that supports interaction (requesting data,
Ajax Application Errors Developer Oversight and Tracking Errors Presented by Eric Pascarello.
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
Website Development with PHP and MySQL Saving Data.
Chapter 6 Server-side Programming: Java Servlets
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Creating PHPs to Insert, Update, and Delete Data CS 320.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Phonegap Bridge – File System CIS 136 Building Mobile Apps 1.
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
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.
SYST Web Technologies SYST Web Technologies AJAX.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
JQuery and AJAX WEB Technologies : PHP Programming Language.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
AJAX. Ajax  $.get  $.post  $.getJSON  $.ajax  json and xml  Looping over data results, success and error callbacks.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Server-side http General form of http response/request GET request method POST request method Responses Servlet support.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
JQuery form submission CIS 136 Building Mobile Apps 1.
How to consume a RESTful service using jQuery. Introduction  In this post we see how to consume the RESTful service described in the post Design a RESTful.
JQuery, JSON, AJAX. AJAX: Async JavaScript & XML In traditional Web coding, to get information from a database or a file on the server –make an HTML form.
AJAX. Objectives Understand and apply AJAX Using AJAX in DOJO library.
CSE 154 Lecture 11: AJAx.
AJAX AJAX = Asynchronous JavaScript and XML.
Social Media And Global Computing Introduction to The MVC Pattern
CSE 154 Lecture 11: AJAx.
CSE 154 Lecture 22: AJAX.
Asynchronous Javascript And XML
jQuery form submission
Forms, cont’d.
JavaScript & jQuery AJAX.
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
PHP and JSON Topics Review JSON.
Presentation transcript:

User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1

Components of jQuery Mobile 2  Data attributes  Pages, Dialogs, and Transitions  Toolbars, Buttons, and icons  Content Formatting  Grids  Content blocks  Collapsible sets  ListViews  Forms  Events & Methods  Most are used automatically  do not need to code them yourself

jQuery form submission 3

jQuery.ajax() 4  Perform an asynchronous HTTP (Ajax) request  Syntax: jQuery.ajax(url[,settings]) OR $.ajax(url[,settings])

Parameters for $.ajax(url[,settings]) 5  url – required  a string containing the URL to which the request is sent  settings – optional  A set of key/value pairs that configure the Ajax request  data - Data to be sent to the server. It is converted to a query string, if not already a string  datatype - The type of data that you're expecting back from the server (xml,html,script,json,text)  Type - The type of request to make (e.g. "POST", "GET", "PUT"); default is "GET".

Parameters for $.ajax(url[,settings]) 6  success - A function to be called if the request succeeds  gets passed three arguments  The data returned from the server  a string describing the status  The jQuery XMLhttpRequest object  error - A function to be called if the request fails  Gets passed three arguments  The jqueryXMLHttpRequest object  a string describing the type of error that occurred  an optional exception object

Sending Data 7  The data option can contain either:  a query string of the form key1=value1&key2=value2  an object of the form {key1: 'value1', key2: 'value2'}  If this form is used, the data is converted into a query string

Object example 8 $.ajax({ type: "POST", url: "some.php", data: { name: "John", location: "Boston" } }).success(function( msg ) { alert( "Data Saved: " + msg ); }); var menuId = $( "ul.nav" ).first().attr( "id" ); var request = $.ajax({ url: "script.php", type: "POST", data: { id : menuId }, dataType: "html“ }); request.success(function( msg ) { $( "#log" ).html( msg ); }); request.error(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus ); });

Querystring example 9

Serialization 10  The serialize() method creating the string with the pair field name – field content in the correct format and ready to be passed to the data parameter of ajax() method.  Ex: will read all form fields with id tracking-form

What we are building 11

App’s page-view 12

Middle-ware that initiates the transmission 13

Server program 14

Returning back to middleware 15

Displaying next page-view 16