Implementing and Using the SIRWEB Interface Setup of the CGI script and web procfile Connecting to your database using HTML Retrieving data using the CGI.

Slides:



Advertisements
Similar presentations
PHP Form and File Handling
Advertisements

Lecture plan Information retrieval (from week 11)
DT228/3 Web Development WWW and Client server model.
CPSC 203 Introduction to Computers Tutorial 59 & 64 By Jie (Jeff) Gao.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Dynamic Web Pages. Web Programming  All our web pages so far have been static pages. 1. We create a web page 2. We upload it to the web server 3. People.
Stanford University EH&S A Service Oriented Architecture For Rich Internet Applications Sheldon M. Heitz.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
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.
CGI programming Using Apache. Concepts Browser prepares parameter list List is attached to name of program to run on server "submit" button sends string.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
Introducing ETIS n Express Term Internet Server is Express Term ‘on the Net’ n All the features of Express Term, plus –Complete control of your site look.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
CPSC 203 Introduction to Computers Lab 21, 22 By Jie Gao.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
WaveMaker Visual AJAX Studio 4.0 Training Authentication.
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
Copyright 2000 eMation SECURITY - Controlling Data Access with
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Internet Forms and Database Bob Kisel Amgraf, Inc.
Southampton University Computing Services Implementing Web data access using sirweb.cgi By Dave Doulton University of Southampton.
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
HTML Hyper Text Markup Language A simple introduction.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
Putting it all together Dynamic Data Base Access Norman White Stern School of Business.
Introduction to JavaScript 41 Introduction to Programming the WWW I CMSC Winter 2004 Lecture 17.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 Welcome to CSC 301 Web Programming Charles Frank.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
SIR and the WEB By Dave Doulton University of Southampton.
A Baker's Dozen Tricks in a Button Thirteen Tricks of the SIR Trade Rolled into a Single Useful Application © Tom Shriver, DataVisor 2002.
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
MEMBERSHIP AND IDENTITY Active server pages (ASP.NET) 1 Chapter-4.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
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.
Configuring and Deploying Web Applications Lesson 7.
HTML Hyper Text Markup Language. The Basics u HTML documents contain “tags” which instruct the Browser software on how to present the information within.
EValid LoadTest, eV.manger and Validation. Agenda Load Test capability of eValid How to execute load test by using eValid Introduction to eV.manager Validation.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
START Application Spencer Johnson Jonathan Barella Cohner Marker.
HTML Hyper Text Markup Language. Agenda Basics Tools Important tags Tables & databases Forms Publishing at Stern.
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
University of Kansas Department of Electrical Engineering and Computer Science Dr. Susan Gauch April 21, 2005 I T T C Introduction to Web Technologies.
Introduction to Dynamic Web Programming
Active Server Pages Computer Science 40S.
Chapter 27 WWW and HTTP.
Programming in JavaScript
Programming in JavaScript
Presentation transcript:

Implementing and Using the SIRWEB Interface Setup of the CGI script and web procfile Connecting to your database using HTML Retrieving data using the CGI interface Building HTML using VisualPQL Tricks and Toys

Setup of the CGI Script You will need a working web server to run SIRWEB (i.e. - Microsoft IIS, Microsoft Peer Web Server, Apache Web Server - my testing was done on Apache and IIS) Place your CGI script in the CGI-BIN directory on your web server The script is ready to be called !

Setup of the Web Procfile Keep your procfile close to your CGI script - store the file in the CGI-BIN directory (this location may cause problems in IIS) Your procfile can not have a file extension ! Remember the full path to the location of your procfile - this path will be used in your PQL code

Connecting to Your Database Make explicit connections at all times - you can not guarantee that your database will be open or closed ! Reusable code can be stored in the procfile to connect to and disconnect from the database All connections are made through PQL code called from the CGI interface

Example: INDEX.HTML Username: Password: DEFAULT (Procfile Member) program pql connect database "HEART" prefix "K:\ihi\heart\" end program …... program pql disconnect database “HEART” end program

Retrieving Data Using CGI Data retrieval is quick and simple with the help of PQL Many of your current programs can be easily modified to generate HTML output Report destination is a web browser rather than a file

Example: INCLUDE MEMBER WEBPROC.TOOLS.HTMLCODE RETRIEVAL NOAUTOCASE STRING * 50 FULLNAME COMPUTE FULLNAME = ‘’ WRITE (CGI) ‘ ’ PROCESS CASES REC IS DEMO GET VARS LNAME FNAME MINT END REC COMPUTE FULLNAME = TRIMLR(LNAME) + ‘, ‘ + TRIMLR(FNAME) + ‘ ‘ + TRIMLR(MINT) WRITE (CGI) ‘ ’ FULLNAME ’ ’ COMPUTE FULLNAME = ‘’ END CASE WRITE (CGI) ‘ ’ END RETRIEVAL

Building HTML Your HTML code can be basic or complex Java Script and Java Applets can be used Style Sheets can be implemented Code reuse is a snap !

An HTML form is used to validate a user login via the CGI script. This uses a routine similar to the one used if a user logs in to the system through the DBMS. In addition, the page uses a JavaScript to set a cookie on the user’s system to ensure that the user has been properly authenticated.

HTML forms can be used to gather user input and pass it to a PQL program. The buttons on the forms are set to call the CGI script and include the data typed into the form.

Links are created by the PQL program and they include calls to the CGI and all the necessary parameters to pull the correct patient information.

All tables are created using ifthen structures in the PQL code. Some information may not be displayed if certain conditions are not met.

When the user clicks the logout link, the cookie is removed from the system and the previous cached pages are secured from view.

Tricks and Toys Browser Issues HTML Frames JavaScript code reuse

Browser Issues Testing for the HeartBase system was done using Internet Explorer 5.5 You will experience problems with Internet Explorer versions lower than 5.0 if you are creating links that call and pass variables to the CGI script

HTML Frames Frames can be used, but the CGI script will return the results to the frame that called the script unless you specify a target Example:

JavaScript JavaScript adds powerful functionality to your web pages If you use JavaScript, store it in a common place for easy re-use

Example: write (cgi) ' ' write (cgi) ' Demographic Information for 'ptname', 'mnum' ' include member webproc.cgi.chklogin write (cgi) ' ’ Since all JavaScript code is inserted between the tags in HTML, a common function was written to validate the login and placed in a procfile member called CHKLOGIN. The code is then included at a common spot in all of the HTML pages that are created by the PQL code.

Contact Me Via Questions ? Please feel free to contact me. I will be more than happy to share my code.