Skip to main content

Web Interfaces and CGI Programming

  • Chapter
Python Scripting for Computational Science

Part of the book series: Texts in Computational Science and Engineering ((TCSE,volume 3))

  • 12k Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 64.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics