[dev] VarRenderer and custom events

Marko Djukic mdjukic at horde.org
Sun Mar 7 09:33:41 PST 2004


committed. good work, thanks.

m.

Quoting Matt <matt at kynx.org>:

> Sorry to take a bit. Was held hostage on a friend's sailboat. Rough life
> :)
>
> > Yes, that sounds like the right way to go. I purposely didn't complete the
> > Horde_Form_Action work when I did it; some of it was pretty specific, and I
> > didn't have the time to do it generally. Anything that makes it more
> general,
> > portable, and useful would be welcome. :)
>
> Diff for framework/UI/UI/VarRenderer/html.php is attached.
>
> I've added a new function _getActionScripts() which returns a string
> '[action]="[script]"', and added this to each of the _renderVarInput_*
> functions *except* image/file/matrix/sort/etc, which are all a bit
> special.
>
> I've also taken the liberty to output all tags in the functions I
> touched with printf to make them more readable. Hope that's OK. I also
> started mucking with the monthdayyear functions to try and get it
> outputting stuff in unamerican 'd m Y' order, but couldn't figure out
> how to test for that.
>
> I haven't had the time to test every last one, but the basics seem to be
> working.
>
> > > Incidentally, the stuff I'm adding is for automatically summing elements
> > > (el1 = el2 + el3 + ...) and another for making the enabled state of one
> > > element dependant on the value of another. Any interest?
> >
> > Sure! Send 'em along.
>
> Attached:
> framework/Form/Form/Action/conditional_enable.php
> framework/Form/Form/Action/sum_fields.php
> horde/templates/javascript/form_helpers.js
>
> Time for the pub,
>
> Matt
>


--
Marko Djukic
Horde Project (http://horde.org)


More information about the dev mailing list