Re: Can I tie a validator to two controls at once?

Tech-Archive recommends: Fix windows errors by optimizing your registry



You can do anything you want. You're a programmer!

This is pretty straightforward. I just add another attribute to the
validator tag, like secondControl="txtDate2". It will render as an
attribute of the DIV used for the validator and you'll get a reference
to that DIV (or is it a Span?) in the custom validation function. Just
grab the attribute, getElementByID(), and you're good to go.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/

.



Relevant Pages

  • Re: Massive HTML coding errors
    ... that a validator wouldn't comment on, ... The DTD at the top of your HTML code is invalid! ... those for your images, and a width of, say, 50% for the div that starts ... You need to be more careful when defining "font-family". ...
    (comp.infosystems.www.authoring.html)
  • Re: Massive HTML coding errors
    ... that a validator wouldn't comment on, ... The DTD at the top of your HTML code is invalid! ... those for your images, and a width of, say, 50% for the div that starts ... You need to be more careful when defining "font-family". ...
    (comp.infosystems.www.authoring.html)
  • Re:
    /IE problem...

    ... "fluid" design I have not given the sidenav div a fixed width.. ... as for the CSS, I just checked above url in W3C CSS validator, it validates.. ... you are running this in quirksmode when you don't have a strict doctype with a path. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Weird validation result
    ... meaning that h1 can only contains inline element. ... In your example, the validator deems the P to be closed as soon as it encounters the start tag for the DIV, and it interprets the two elements as a P element *followed by* a DIV element, not as a P element *containing* a DIV element. ...
    (alt.html)
  • Re: Page validation with multiple panels
    ... got one div as a container and the two inner div's that I set ... > to validate all of your controls server-side. ... > as the controls actually exist in your page, the validator js should ... > the hidden panels in order for the user to see the validation error text. ...
    (microsoft.public.dotnet.framework.aspnet)