I believe the syntax is (not tested): $(e).parent().next()[utoggle.animationType](uToggle.speed); Javascript objects are associative arrays. Danny
On Nov 1, 3:29 am, Olaf Gleba <[EMAIL PROTECTED]> wrote: > Little Correction for the second example (needless '()' in chain). > > Am 01.11.2007 um 09:22 schrieb Olaf Gleba: > > > Example (doesn't works): > > > var uToggle = { > > animationType: 'fadeIn', > > speed: 'fast' > > ... > > > xxx: function(e) { > > $(e).parent().next().uToggle.animationType()(uToggle.speed); > > } > > }; > > ... > xxx: function(e) { > $(e).parent().next().uToggle.animationType(uToggle.speed); > ... > > -- > Olaf Gleba : creatics media.systems > tel. +49 (0)212 38 32 94 30 : fax. +49 (0)212 38 32 94 31 > [EMAIL PROTECTED] :http://www.creatics.dehttp://www.creatics.de/keys/