Gsharp Contour Application

Operation

This example allows you to operate Gsharp through an HTML forms GUI.

A forms interface has been created in an HTML window frame. Using this form, you can set graph properties. When you want to generate a graph, simply press the "Apply" button at the bottom of the form. A graph will be dynamically created "on-demand" from your input. You can repeat the process as often as you like.

The Graph-on-Demand technique can can be used to control any property used by a graph template. The graph template used for this example is programmed in the Gsharp script language, GSL, and can be viewed from a hyperlink on the generated web page.

Tips on Using Frames

If you are unfamiliar with navigating HTML frames, a few tips will help. To go back or forward in a frame, position the pointer inside the frame and press the right mouse button. A menu will pop up with the "back" and "forward" commands.

You can resize a frame by dragging the seperator between frames.

Reloading or Refreshing the page will cause the dynamic page to be regenerated. Netscape Navigator will prompt before reposting the form data. Cancelling the repost will cancel regeneration of the dynamic page.

Normally, you will see the hourglass cursor while the dynamic page is being generated. With Netscape Navigator the hourglass is only visible while the pointer is over the form frame. With MS Internet Explorer, the hourglass is visible only when the pointer is over the seperater between the two bottom frames.

How does it work?

There are many ways of using the Gsharp Web Edition in the cgi-bin directory and this is an example of generating an image and HTML from a GSL script. This GSL script is used to parse the form input, create an image, and create the HTML which references the image.

This example consists of the following files: