On Mon, 2004-05-31 at 18:32, Steve wrote: > Hi, > > Can anyone tell me which versions do the below functions belong to:- >
That's a strange question. I would suspect you know which API you're using? Anyway, seems like it's mostly v2. > > 1. var wid = form.getWidget(); > var widvalue = wid.<widget-id>.value > > 2. var wid = form.getWidget("<widget-id>").getValue(); > > Similarly for submit buttons :- > > 1. var submit_button = form.getWidget().getSubmitWidget(); > if(submit_button == "<button_id>") > // then do something > > 2. var wid = form.getWidget(); > wid.<button-id>.onActivate/onClick = // do something.... > > Please guide me. > > I am using 2.1.5 version of cocoon. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]