Re: Validate 2 fieds!
"Oscar Omar Avila" <[email protected]> Thu, 04 Nov 2004 01:50:58 -0500
| Newsgroups | gmane.comp.web.voice,gmane.comp.web.css.general,gmane.comp.web.xforms,gmane.comp.web.html.general,gmane.org.w3c.accessibility.agents,gmane.org.w3c.accessibility.guidelines,gmane.org.w3c.accessibility.general |
|---|---|
| Message-ID | <[email protected]> |
Greetings, you've already had some answers to your question but I'd like <B= R>to suggest that you consider the following approach:<BR><BR><f:instanc= e><BR> <data><BR> &= nbsp; &nbs= p; <pair><BR> &n= bsp;  = ; <a>5</a><BR> &= nbsp; &nbs= p; <b>10</b><BR>  = ; </pa= ir><BR> </data><BR></= f:instance><BR><BR><f:bind nodeset=3D"/data/pair" constraint=3D"/data= /pair/a &lt; /data/pair/b"/><BR><f:bind nodeset=3D"/data/pair/a" = type=3D"xsd:integer"/><BR><f:bind nodeset=3D"/data/pair/b" type=3D"xs= d:integer"/><BR><BR><f:group ref=3D"/data/pair"><BR> &n= bsp; <f:label>pair: </f:label><BR><BR>&= nbsp; <f:input ref=3D"/data/pair/a"&= gt;<BR> &= lt;f:label>a: </f:label><BR> &n= bsp; </f:input><BR><BR> <= ;f:input ref=3D"/data/pair/b"><BR> &n= bsp; <f:label>b: </f:label><BR> &n= bsp; </f:input><BR><BR></f:group>= <BR><BR>This has the benefit from a users point of view that if the user wa= nts to <BR>change a and b to be 12 & 17 the intermediate state of a(12)= and b(10) <BR>will indicate that the value of a is invalid but it will ind= icate that <BR>there is a problem with the pair<A href=3D"http://seek-time.= org/">.</A><BR><BR>Regards, Roland<BR><BR><BR><BR>"Vo, Thanh Chi" <<A hr= ef=3D"mailto:ThanhVo%40psv.com.vn?Subject=3DRe%3A%20Validate%202%20fieds!&a= mp;In-Reply-To=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0050C9FC= %40uk.ibm.com>&References=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80= 256F40.0050C9FC%40uk.ibm.com>">[email protected]</A>> <BR>Sent by: <A h= ref=3D"mailto:www-forms-request%40w3.org?Subject=3DRe%3A%20Validate%202%20f= ieds!&In-Reply-To=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0= 050C9FC%40uk.ibm.com>&References=3D<OF6256D5D1.A52A26C4-ON80256F40.004A= F3B0-80256F40.0050C9FC%40uk.ibm.com>">[email protected]</A><BR>26/10= /2004 07:16<BR><BR>To<BR>"'<A href=3D"mailto:www-forms%40w3.org?Subject=3DR= e%3A%20Validate%202%20fieds!&In-Reply-To=3D<OF6256D5D1.A52A26C4-ON80256= F40.004AF3B0-80256F40.0050C9FC%40uk.ibm.com>&References=3D<OF6256D5D1.A= 52A26C4-ON80256F40.004AF3B0-80256F40.0050C9FC%40uk.ibm.com>">[email protected]= rg</A>'" <A href=3D"http://binary-search.org/">,</A><<A href=3D"mailto:w= ww-forms%40w3.org?Subject=3DRe%3A%20Validate%202%20fieds!&In-Reply-To= =3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0050C9FC%40uk.ibm.com>= &References=3D<OF6256D5D1.A52A26C4-ON80256F40.004AF3B0-80256F40.0050C9F= C%40uk.ibm.com>">[email protected]</A>><BR>cc<BR><BR>Subject<BR>Validate = 2 fieds!<A href=3D"http://enter-se.com/">.</A><BR><BR><BR><BR><BR><BR><BR>H= i all<A href=3D"http://search-options.com/">,</A><BR>Could you tell me how = to make a validation like that:<BR>value A < value B.<BR>By schema I've = just make value A, value B in a fix range( such as 0..255)<BR>And by schema= could we make a constrain like that( value A < value B)<A href=3D"http:= //your-search.org/">.</A><BR> <BR><BR> --=20 <p>_______________________________________________<br> Find what you are looking for with the <a href=3Dhttp://r.lycos.com/r/yp_em= ailfooter/http://yellowpages.lycos.com/default.asp?SRC=3Dlycos10>Lycos Yell= ow Pages </a>