EasyUI Forum
September 16, 2025, 01:53:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / Bug Report / Re: datebox validation does not behave like validatebox on: April 02, 2013, 06:12:19 PM
...with a validatebox, the validation warning does not appear until the user clicks on the field. However, with datebox the validation warning shows up instantly when the form is loaded.

I am having this problem too.

Can you recommend a solution?
2  General Category / EasyUI for jQuery / Re: validatebox and remote on: March 25, 2013, 08:51:35 PM
Sorry - I found the problem.  Wrong filename "validate_username.php" should have been "validate_user_name.php"...

3  General Category / EasyUI for jQuery / validatebox and remote on: March 25, 2013, 08:19:57 PM
I am trying to set up a validatebox that checks text input.  However, with my test code the validatebox never validates.  The test should return "true" if the user_name typed is "good".

Please advise.

Code below:

register.php
Code:
<input name="user_name" class="easyui-validatebox" data-options="required:true" validType="remote['validate_username.php', 'user_name']" invalidMessage="User name already exists.">
validate_username.php
Code:
<?php

                $user_name 
$_REQUEST['user_name'];
                if(
$user_name == 'good'){
                                echo 
'true'// successful input
                
}else{
                                echo 
'false';
                }

?>
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!