[rrd-developers] RRDcgi question

Henk Uijterwaal (RIPE-NCC) henk at ripe.net
Thu Sep 27 17:50:17 MEST 2001


Hi,

I have RRDcgi script that looks like:

-----------
 #!/usr/local/bin/rrdcgi

   [...]
   <SELECT ID="TB List" NAME="RRD_NAME">
    <OPTION VALUE="193.0.0.2">tt02</OPTION>
    <OPTION VALUE="193.0.0.28">tt03</OPTION>
    <OPTION VALUE="193.0.0.6">tt04</OPTION>
    [...]
   </SELECT>

   <RRD::GRAPH [...]
   >

   <INPUT TYPE=SUBMIT NAME="Draw" VALUE="DRAW">
------------

The first time this is run, it shows a page with the selectors set to
"tt02" and "small".  Suppose I set them to "tt04" and "large", then submit
the page and get a plot.

However, on that next page, the selectors are again set to "tt02" and
"small".  The user now often wants to refine the plot, but is then forced
to make all selections he just made again.

Now, is it possible return a page that starts with:

-----------
 #!/usr/local/bin/rrdcgi

   [...]
   <SELECT ID="TB List" NAME="RRD_NAME">
    <OPTION VALUE="193.0.0.2">tt02</OPTION>
    <OPTION VALUE="193.0.0.28">tt03</OPTION>
    <OPTION VALUE="193.0.0.6" SELECTED>tt04</OPTION>
    [...]
   </SELECT>
   [...]
------------------

In that case, the user sees the parameters he just entered and can modify
them, leaving the ones that he is happy with untouched.

Question: is there any way to do this?

Essentially, it would mean sticking a "selected" into the list of options.

Second question: what about text-input fields?

Henk

------------------------------------------------------------------------------
Henk Uijterwaal                    Email: henk.uijterwaal at ripe.net
RIPE Network Coordination Centre     WWW: http://www.ripe.net/home/henk
Singel 258                         Phone: +31.20.5354414
1016 AB Amsterdam                    Fax: +31.20.5354445
The Netherlands                   Mobile: +31.6.55861746
------------------------------------------------------------------------------

As long as you don't tell your friends how I played the hand,
then I won't tell my friends how you defended it.                 (Anonymous)




--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-developers mailing list