[Zope] Text box with qualifier and Javascript
Darin Lee
LEEDM@state.mi.us
Wed, 18 Apr 2001 11:39:51 -0400
Yes! Oleg, That's it! I'd been puzzling over this Javascript issue for =
some time as well!
Thanks,
-Darin
On Tue, 17 Apr 2001, Laurie Nason wrote:
>> Is it possible to specify an input box with a qualifier (:int) and then
>> check it when the form is submitted using javascript? - the name of the =
box
> Yes, it is pretty possible.
>> now includes the :int
>> i.e.
>> <input type=3D"text" name=3D"event:int" size=3D"10" value=3D"5">
>> .....
>> .....
>> <script Language=3D"Javascript">
>> function checkform(myform) {
>>
>> if(myform.event:.value=3D=3D"")
>> {alert("The event cannot be blank!")
>> myform.event.focus()
>> return false}
Oleg wrote:
> if (myform.elements["event:int"].value=3D=3D"")
> (or use just index - myform.elements[1] - if the index of the object is =
1)