The present chapter explains how to build graphical user interfaces as web pages. For example, we shall create an interactive web interface to a computational service and display the results graphically. Interactive or dynamic web pages can be realized in different ways:
-
by Java applets that are downloaded and executed on the client's computer system
-
by JavaScript code as part of the HTML code in the web page
-
by programs on the web server communicating with the web page through a Common Gateway Interface (CGI).
The latter technique has two attractive features: The web page interaction is fast (no need to download applets), and a full-fledged programming language of almost any choice can be used in creating the interactivity. Scripting languages, in particular Perl, have traditionally been popular for CGI programming, basically because CGI programming involves lots of text processing.
Only some basic knowledge of Python from Chapter 2 is required to understand the present chapter. Since we deal with web-based graphical user interfaces and the same examples as in Chapters 6.1 and 6.2, it might be an advantage to have browsed those examples.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
(2009). Web Interfaces and CGI Programming. In: Langtangen, H.P. (eds) Python Scripting for Computational Science. Texts in Computational Science and Engineering, vol 3. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73916-6_7
Download citation
DOI: https://doi.org/10.1007/978-3-540-73916-6_7
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-73915-9
Online ISBN: 978-3-540-73916-6
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)