Re: [Zope] Form data type coercion syntax and javascript

2001-01-17 Thread Oleg Broytmann
On Wed, 17 Jan 2001, Mayers, Philip J wrote: > > > But how do you access it from JavaScript then? I'm doing this: > list = form.elements[j]; list = form.elements["test:list"]; Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Progra

RE: [Zope] Form data type coercion syntax and javascript

2001-01-17 Thread Max Møller Rasmussen
From: Mayers, Philip J [mailto:[EMAIL PROTECTED]] >Not a problem per-se, just a query - how are people dealing with things like >this: snipped lots of stuff... >Anything more elegant? I don't know if it is something like this you mean: self.document.form['test:list'].value = 'stuff to fill in

[Zope] Form data type coercion syntax and javascript

2001-01-17 Thread Mayers, Philip J
Not a problem per-se, just a query - how are people dealing with things like this: function populate(form) { for (var i=0;i<4;i++) { form.test.options[i] = new Option("Red"+i,"color_red"); if (i == 0) form.test.options[i].selected = true; } return false; } If a