"but v2.d will be ignored (type of the value is function)" ok, but so how to do this : I have Default Options for all my Ajax.Updater() DefaultOptions = { asynchronous:true, evalScripts:true, onLoaded:function(request){Element.hide('spinner')}, onLoading:function(request){Element.show('spinner')} } I have lots of Ajax.Updater() var MyPageFunctions = { func1 : function() { var OptionForThisFunction = {onComplete: function() { some code } }; //I would like that {options} be OptionForThisFunction + Default Options new Ajax.Updater('bla','url', {options}); }, func2 : function() { var OptionForThisFunction = {onComplete: function() { some other code } }; //I would like that {options} be OptionForThisFunction + Default Options new Ajax.Updater('bla2','url', {options} ); } . . . } there is a way to do this? tks Siegfried Puchbauer escreveu: try it this way: |
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs