Global.helma.Html.radioButton (param)
render an x/html radiobutton input element

  • Parameter Object:
    the element's attributes
Sourcecode in /home/hannes/helma/modules/helma/Html.js:
315:   this.radioButton = function(param) {
316:           if (!param) {
317:               res.write("[Html.radioButton: insufficient arguments]");
318:               return;
319:           }
320:           var attr = Object.clone(param);
321:           attr.type = "radio";
322:           if (attr.selectedValue != null) {
323:               if (attr.value == attr.selectedValue)
324:                  attr.checked = "checked";
325:              else
326:                  delete attr.checked;
327:              delete attr.selectedValue;
328:          }
329:          self.tag("input", attr);
330:          return;
331:      }