Craig Pelkie Copyright © 2015, Craig Pelkie ALL RIGHTS RESERVED Use RPG to Mobilize your IBM i.

Slides:



Advertisements
Similar presentations
What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
Advertisements

A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Tutorial 6 Creating a Web Form
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.
Video, audio, embed, iframe, HTML Form
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
1 Chapter 12 Working With Access 2000 on the Internet.
Forms Review. 2 Using Forms tag  Contains the form elements on a web page  Container tag tag  Configures a variety of form elements including text.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Session 2 Tables and forms in HTML Adapted by Sophie Peter from original document by Charlie Foulkes.
ICS 665 Jesse Abdul. jQuery UI Overview  jQuery UI javascript library Includes all UI component functionality  jQuery UI CSS framework Includes standard.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
 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.
Advance Database Management Systems Lab no. 5 PHP Web Pages.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Page: 1 Creating AJAX-Powered Forms with the Dojo Toolkit Presented By: James Harmon Object Training Group, Inc.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Web Technologies Website Development Trade & Industrial Education
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Website Development with Dreamweaver
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.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
HTML Forms.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
Copyright © 2012 UNICOM Systems, Inc. Confidential Information z/Ware Product Overview illustro Systems International A Division of UNICOM Global.
HTML.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
HTML FORMS The TEXT Object Presented By: Ankit Gupta.
Netprog CGI and Forms1 CGI and Forms A detailed look at HTML forms.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
Adxstudio Portals Training
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
1 Committed to Shaping the Next Generation of IT Experts. 03: Links and Forms HTML.
JQuery Mobile User Interface Design Chapter 1 1. Architecture 2  Hybrid Apps leverage open web standards  Can Test/debug user interface using desktop.
François Briard GS-AIS-HR Database Developers Forum, APEX 6th May 2014 APEX Mobile Application Development 101.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
An Introduction to JQuery Mobile By Trevor Seeney.
XP 1 Charles Edeki AIU Live Chat for Unit 2 ITC0381.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Tutorial 6 Creating a Web Form
Fundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Textbook to be published by Pearson Ed in early Bootstrap.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
COMP 143 Web Development with Adobe Dreamweaver CC.
Getting Started with HTML
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
CNIT131 Internet Basics & Beginning HTML
How to Write Web Forms By Mimi Opkins.
User Interface Design and Usability jQuery, jQuery UI & jQuery Plugins
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
APTECH JANAKPURI INSTITUTE PROVIDING WEB DESIGNING COURSES Address:- J-1,2nd Floor, Opp Metro Pillar No – 559, Janakpuri East, Delhi /42.
HTML Forms and User Input
Forms, cont’d.
Web Development & Design Foundations with H T M L 5
Secure Web Programming
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Basics of Web Design Chapter 10 Form Basics Key Concepts
Presentation transcript:

Craig Pelkie Copyright © 2015, Craig Pelkie ALL RIGHTS RESERVED Use RPG to Mobilize your IBM i

The starting point: browser-based HTML forms This is the example menu that is provided with CGIDEV2 2 Item 1: CGIDEV2 menu

The starting point: browser-based HTML forms This is an example form that is provided with CGIDEV2 3 Item 3: CGIDEV form

The starting point: browser-based HTML forms 4

5 The starting point: the menu, recoded for mobile

This is an adaptation of the CGIDEV2 menu, using jQuery Mobile Still usable in a desktop browser Usable in a mobile device What makes this usable Text is easy to read Links are easily selected 6 Item 2: CGIDEV2 menu jQM

How all of this works with RPG 7 HTML Template in IFS DB2 database files CGIDEV2 RPG Programs HTTP Server on IBM i      

What is jQuery Mobile? Touch-optimized mobile framework Supports smart phones, tablets, desktop Built upon the jQuery Framework, HTML5, CSS Variety of widgets – easy to configure Themes for customization 8

How jQuery Mobile Works data-attributes implement and style widgets Part of HTML5 specification Custom attribute that begins with data- The basis of the framework No need to write any JavaScript code 9

How to include jQuery Mobile on a page min = minified version of file code.jquery.com — Content Delivery Newtwork (CDN)  Link to jQuery Mobile CSS  jQuery Framework  jQuery Mobile Framework 10   

A basic jQuery Mobile document Page Title Page content goes here. Page Footer 11

Basic list of Links CGIDEV2 Library Examples using old subprocedures Examples using new subprocedures Other examples Documentation 12

A list of links with dividers CGIDEV2 Library Subprocedures Examples using old subprocedures Examples using new subprocedures Other Other examples Documentation 13

14 The starting point: the menu, recoded for mobile

Review: the original form 15

How jQuery Mobile handles form elements Creates mobile optimized elements based on native HTML code Adds styles and effects automatically with no additional coding Supports HTML5 form elements and attributes Requires the element Stacks elements on top of each other by default 16 Item 5: CGIDEV2 form Pass 1

An HTML form using jQuery Mobile attributes and classes 17 Item 11: CGIDEV2 form Pass 4

Creating a form on a web page 18 Your name <input type="text" name="custname" id="custname" maxlength="40"> address <input type=" " name=" add" id=" add" maxlength="40"> A element encloses input fields that are sent to the server The fields define where the user can make entries on the page The button (or equivalent JavaScript code) causes the action of the form to be invoked

Processing with CGIDEV2 - text input 19 Your name <input type="text" name="custname" id="custname" maxlength="40"> // Get Customer Name from HTML input custname = zhbGetVar('custname'); zhbGetVar procedure (CGIDEV2 module XXXCGIPARS) Parm 1: HTML name of variable to get not case-sensitive, 50 char max name length Returns: character string if found, else blank

/$BodyListItemMultiText /%listItemText%/ /%listItemText2%/ /$BodyEndListView Writing to the browser with RPG - HTML template file 20 // Write a list item UpdtHtmlVar('listItemAHref' : '/cmb/item01.html'); UpdtHtmlVar('listItemText' : 'POST using ZhbGetVar'); UpdtHtmlVar('listItemText2' : 'Externally described HTML...'); WrtSection('BodyListItemMultiText');

The jQuery Mobile web site 21 Download the jQuery Mobile and CSS file from here Many examples of widgits and their attributes Lab-based training course: Create Mobile Web Applications using RPG