Re: [Zope] Text box with qualifier and Javascript
18 Apr
2001
18 Apr
'01
3:39 p.m.
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="text" name="event:int" size="10" value="5"> ..... ..... <script Language="Javascript"> function checkform(myform) {
if(myform.event:.value=="") {alert("The event cannot be blank!") myform.event.focus() return false}
Oleg wrote:
if (myform.elements["event:int"].value=="") (or use just index - myform.elements[1] - if the index of the object is 1)
9120
Age (days ago)
9120
Last active (days ago)
0 comments
1 participants
participants (1)
-
Darin Lee