Forum OpenACS Q&A: Re: button image and ad_form

Collapse
Posted by Mark Aufflick on
1/ proved ultra simple.

added template::widget::image:

ad_proc -public template::widget::image { element_reference tag_attributes } {
  upvar $element_reference element
  return [input image element $tag_attributes]
}
and had to make template::widget::input wise up to the src attribute:

      if { [info exists element(src)] } {                                                                                     
          append output " src=\"$element(src)\""
      }
Who thinks i should commit this?