Calling function ValidatorValidate(val)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jake

    #1

    Calling function ValidatorValidate(val)

    Hi All

    I am trying to call "function ValidatorValida te(val)"
    from "WebUIValidatio n.js" with Javascript but dont know
    what the function is excpecting.

    On "http://msdn.microsoft. com/library/default.asp?
    url=/library/en-us/dnaspp/html/aspplusvalid.as p" val is a
    a "client-validator" but what is it exactly in
    javascript, the span ID?

    I am trying to triger this from a child page to validate
    the main page useing teh follwing but again dont know
    that to pass(vldEndDate is the span ID?):
    window.opener.V alidatorValidat e
    (window.opener. document.vldEnd Date)

    Thanks in advance

    Jake
  • Dune

    #2
    Calling function ValidatorValida te(val)

    You need to pass it a reference to the validator object
    you are trying to trigger validation for. This means that
    in your javascript, you must first find the correct
    validator using the document.getEle mentById(contro lName)
    method. For example, if your validator control has
    id="cuvValidate Select" then you will need to do something
    like this in your javascript...

    var valControl = document.getEle mentById
    ("cuvValidateSe lect");
    ValidatorValida te(valControl);
    [color=blue]
    >-----Original Message-----
    >Hi All
    >
    >I am trying to call "function ValidatorValida te(val)"
    >from "WebUIValidatio n.js" with Javascript but dont know
    >what the function is excpecting.
    >
    >On "http://msdn.microsoft. com/library/default.asp?
    >url=/library/en-us/dnaspp/html/aspplusvalid.as p" val is a
    >a "client-validator" but what is it exactly in
    >javascript, the span ID?
    >
    >I am trying to triger this from a child page to validate
    >the main page useing teh follwing but again dont know
    >that to pass(vldEndDate is the span ID?):
    >window.opener. ValidatorValida te
    >(window.opener .document.vldEn dDate)
    >
    >Thanks in advance
    >
    >Jake
    >.
    >[/color]

    Comment

    Working...