Rick Faircloth schrieb:
Hi, all...

Here's the function: (Thanks, Dan...)

<script type="text/javascript">

        function superCoolValidator(value,element,params) {
                if(isNaN(parseInt(value.replace(/[\$\,\.]/,"")))){
                        return false;
                        }else{
                        return true;
                }
        }
How about:

function superCoolValidator(value) {
        return !isNaN( parseInt( value.replace(/[\$\,\.]/, "") ) );
}

                       <INPUT id="Principal"
                        Test="superCoolValidator:true"
                      Name="Principal"
                           Type="Text"
        
Value="#Ceiling(Trim(Get_Property_Details.Sale_Price))#"
                        Size="14"
                          Class="TextInput01">
What is the attribute "Test" supposed to be? Did you configure the metadata plugin accordingly? Otherwise, does this work? ->

<input id="..." class="{superCoolValidator:true}" ... />

Have you tried setting the debug option to true? Is your submithandler called?

--
Jörn Zaefferer

http://bassistance.de

Reply via email to