[rrd-developers] Re: rrdcgi bug: can't eval multiple <RRD::CV> tags on one line or somesuch

Tobias Oetiker oetiker at ee.ethz.ch
Wed Nov 3 07:49:05 MET 1999


Yesterday you sent me mail regarding Re: [rrd-developers] rrdcgi bug: can't...:

*>  > *> It's no big deal for me: I'm gunna rewrite the whole thing
*>  > *> in perl because there's no way to retain CGI variables gotten
*>  > *> from the <SELECT> tag (html's poor excuse for listbox widget)
*>  > *> via rrdcgi.
*>   
*>  > From: Tobias Oetiker
*>  > try changeing the last line of the parse function ...
*>  > 
*>  > to
*>  > 
*>  >   return valln > 0 ? valln-1: valln;
*> 
*> With the rrdcgi code 
*> 
*>   <SELECT NAME=RRD_NAME>
*> 
*> and the "MadisonSD-s0" item selected, how do I construct
*> the html tag
*> 
*>   <OPTION SELECTED> MadisonSD-s0
*> 
*> based on <RRD:CV RRD_NAME>??
*> 
*> With perl, I'd end up doing
*> 
*>   if ( $this_iface eq $form_data{'RRD_NAME'} ) {
*>     print "<OPTION SELECTED> $this_iface\n";
*>   } else {
*>     print "<OPTION> $this_iface\n";
*>   }

normally state is passed on using an INPUT filed of type hidden

cheers
tobi
*> 
*> later
*> steve
*> - - -
*> systems guy
*> wiscnet.net
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the rrd-developers mailing list, send a message with the
  subject: unsubscribe to rrd-developers-request at list.ee.ethz.ch



More information about the rrd-developers mailing list