Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Part R: Thin-client SVG GUI forms Ronan Oger – SVG Open 2003 SVG GUI Workshop.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com SVG Open 2003 Vancouver, Canada 1-2 July, 2003 Programming SVG with Perl Ronan.
Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Building an SVG GUI with Perl Ronan Oger RO IT Systems GmbH
Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystem s.com A Web Interface to Autotrace 9 March 2004 Ronan Oger RO IT Systems GmbH London.
Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Building an SVG GUI with Perl YAPC::EU 2003.
E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
REST - Representational State Transfer
JavaScript and the DOM Les Carr COMP3001 Les Carr COMP3001.
Javascript Introduction Norman White Material is from w3schools.com Go there to run examples interactively.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Tutorial 6 Creating a Web Form
1 Lesson 10 Using JavaScript with Styles HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
SE-2840 Dr. Mark L. Hornick 1 HTML input elements and forms.
Introducing Mapbuilder Michael Adair Natural Resources Canada.
Python and Web Programming
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Model-View-Controller Architecture in a Systems Analysis and Design Course Dr. Robert F. Zant Illinois State University.
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
11/13/2007 A synchronous J avaScript A nd X ML Gloria Law Joshua Mahaz.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Objectives  Testing Concepts for WebApps  Testing Process  Content Testing  User Interface Testing  Component-level testing  Navigation Testing.
D2L Notes Be sure to submit your link in the dropbox provided on D2L You can just upload an empty text file if a file upload is required Do not use D2L.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
1 Accelerated Web Development Course JavaScript and Client side programming Day 2 Rich Roth On The Net
Web mapping interoperability in practice, a Java approach guided by the OpenGis Web Map Server Interface Specification Pedro Fernández, R. Béjar, M.A.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
Functional Accessibility Evaluation of Web 2.0 Applications Testing Jon Gunderson, Ph.D University of Illinois.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Web Applications Extensions (WAE) for UML UML helps manage the complexity by encouraging us to think of things in terms of objects and encapsulate properties.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
44238: Dynamic Web-site Development Client Side Programming Ian Perry Room:C48 Extension:7287
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
Copyright © 2012 UNICOM Systems, Inc. Confidential Information z/Ware Product Overview illustro Systems International A Division of UNICOM Global.
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.
HTML Forms a form is a container for input elements on a web page input elements contain data that is sent to the web server for processing.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
 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.
Interactive Web Tehcnologies Teppo Räisänen LIIKE/OAMK 2011.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
ICM – API Server & Forms Gary Ratcliffe.
® IBM Software Group © 2006 IBM Corporation JSF Rich Text Area Component This Learning Module describes the use of the JSF Rich Text Area component – for.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
HTML Forms.
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
1 Introduction to Web Application Review. 2 Five Layers Architecture HTML, CSS, Java Script ASP.net User ’ s.dll, Nunit, Web Services ADO.net SQL Server,
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Tutorial 6 Creating a Web Form
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
Section 10.1 Define scripting
Introduction to Dynamic Web Programming
Jim Fawcett CSE791 – Distributed Objects Spring 2001
Section 17.1 Section 17.2 Add an audio file using HTML
Predefined Dialog Boxes
Web Development & Design Foundations with H T M L 5
Forms, cont’d.
JavaServer Faces: The Fundamentals
Tutorial 10: Programming with javascript
Web Technologies Computing Science Thompson Rivers University
Client-Server Model: Requesting a Web Page
Hypertext Preprocessor
Introduction to JavaScript
Presentation transcript:

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Part R: Thin-client SVG GUI forms Ronan Oger – SVG Open 2003 SVG GUI Workshop

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Minimize client-side functional requirements Keep business logic on the server Facilitate functional extension Require planing and vision Thin-client applications

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Now: HTML-Style form process model –Render->modify->submit –Familar with users. (Possibly) Later: XFORMS support in SVG –Embedded form content within the XML vocabulary. –Problem: Not in 1.2. Not finalized. No processing model. –Too complex. Never worked with it... Forms Processing in SVG

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com HTML: –declarative form processing –Must submit all values and refresh page SVG: –No support for declarative information processing –Use Script-assisted processing HTML-Style Forms

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com HTML-Style Architecture Concept Keep the widget a black box Wiget changes modify a text field Maintain state at server Use commit event to update state

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Examples Rotary control Sliding control Pull-down menu Text field

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com script components Do_set_string: Assign the interface values Do_process_form: Submit the form

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com do_set_string() // set a string function do_set_string(Doc, id, string) { Doc.getElementById(id).getFirstChild.setData(string); } Provides a single method for assigning values to the form interface. Required due to a shortcoming in SMIL which does not support declarative animation on text elements.

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com do_process_form() // submit the form for processing function do_process_form(IDArray,ValueArray) { var url = 'GISMax.cgi?edit=;act=processform;'; for (var i=0; i<IDArray.length; i++) { url = url + eval("'"+IDArray[i]+"'") + "= + getFormFieldValue(evt,eval("'"+ValueArray[i]+"'"))+';'; } getURL(url+';uid='+uid,show_callback); setCommand(evt,''); } Form handler for submit. Required due to a shortcoming in SMIL which does not support declarative animation on text elements.

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com How this works... Commit button Do_process_form getURL (postURL) Callback_method – rendering commands. –Old: delete by id –New: append to the workspace –Message: server messages for the user

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com XML snippet result <rect width="100" y="20" fill="yellow" stroke="blue" x="10" height="60" /> Hey... you said: dog Script function Do_process_form causes a query to be called by getURL and to be parsed by parsXML Result of pulldown.svg server query

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Why this is good Keep the client-side functionality simple No large javascript downloads Obfuscates code base – some people like this

Copyright 2001 RO IT Systems GmbH RO IT Systems GmbHwww.roitsystems.com Why this is not so good Must stay connected to the server – no standalone apps. Bandwidth. Server load – Requires powerful hardware