• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    Build Tag: gallery-2012.05.23-19-56

    Return to Form Manager CSS Validation

    YUI({
        //Last Gallery Build of this module
        gallery: 'gallery-2012.05.23-19-56'
    }).use('gallery-formmgr-css-validation', function(Y)
    {
    	var e = this.form.elements;
    	for (var i=0; i<e.length; i++)
    	{
    		var e_id     = e[i].id;
    		var msg_list = this.validation_msgs[e_id];
     
    		var info = FormManager.validateFromCSSData(e[i], msg_list);
    		if (info.error)
    		{
    			this.displayMessage(e[i], info.error, 'error');
    			status = false;
    			continue;
    		}
     
    		if (info.keepGoing)
    		{
    			// perform other validations
    		}
    	}
     
    	return status;
    });

    Build Output

    /home/y/libexec/ant/bin/ant all
    Buildfile: build.xml
         [echo] Starting Build For gallery-formmgr-css-validation
    
    clean:
    
    init:
        [mkdir] Created dir: /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp
         [echo] Starting Build For gallery-formmgr-css-validation
    
    -lint-server:
         [echo] Starting Build For gallery-formmgr-css-validation
    
    -node:
         [echo] For faster builds, install Node.js.
    
    -concatdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp/ant
       [delete] Deleting directory /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp/ant
    
    -registerdebug:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp
    
    -prependdebug:
    
    -appenddebug:
    
    builddebug:
    
    -createcore:
         [copy] Copying 1 file to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp
    
    -loggerregex:
    
    buildcore:
    
    -rollupjs:
    
    -concatskins:
    
    -buildskins:
    
    -rollupcss:
    
    buildskins:
    
    -buildlangs:
    
    -rolluplangs:
    
    buildlangs:
    
    build:
    
    minify:
    [yuicompressor] Compressing /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp/gallery-formmgr-css-validation.js
    [yuicompressor] 
    [yuicompressor] [WARNING] Invalid hint syntax: use strict
    [yuicompressor] add("gallery-formmgr-css-validation",function(Y){ ---> "use strict" <--- ;Y.namespace("FormManager");var required_class
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ("FormManager");var required_class="yiv-required"; ---> var  <--- length_class_re=/(?:^|s+)yiv-length:[([0-9]+)?,([1-9][0-9]*)?](?:s+|$)/;var integer_class_re=/(?:^|s+)yiv-integer(?::[([-+]?[0-9]+)?,([-+]?[0-9]+)?])?(?:s+|$)/;var 
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] required_class="yiv-required";var length_class_re=/(?:^|s+)yiv-length:[([0-9]+)?,([1-9][0-9]*)?](?:s+|$)/; ---> var  <--- integer_class_re=/(?:^|s+)yiv-integer(?::[([-+]?[0-9]+)?,([-+]?[0-9]+)?])?(?:s+|$)/;var decimal_class_re=/(?:^|s+)yiv-decimal(?::[([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?,([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?])?(?:s+|$)/;Y
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] length_class_re=/(?:^|s+)yiv-length:[([0-9]+)?,([1-9][0-9]*)?](?:s+|$)/;var integer_class_re=/(?:^|s+)yiv-integer(?::[([-+]?[0-9]+)?,([-+]?[0-9]+)?])?(?:s+|$)/; ---> var  <--- decimal_class_re=/(?:^|s+)yiv-decimal(?::[([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?,([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?])?(?:s+|$)/;Y.FormManager.integer_value_re=
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ){e=e._node;} ---> var  <--- required=Y.DOM.hasClass(e,
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] required&&e.value===""){ ---> var  <--- msg=null;if(msg_list&&msg_list.
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] }}if(e.className){ ---> var  <--- m=e.className.match(length_class_re)
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] +" has min_length > max_length",null,"FormManager");} ---> var  <--- msg=null;var has_min=(hasLimit(
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable msg has already been declared in the same scope...
    [yuicompressor] " has min_length > max_length",null,"FormManager");}var  ---> msg <--- =null;var has_min=(hasLimit(m
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] "FormManager");}var msg=null; ---> var  <--- has_min=(hasLimit(m[1])
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] false,error:msg};}} ---> var  <--- m=e.className.match(integer_class_re)
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable m has already been declared in the same scope...
    [yuicompressor] ,error:msg};}}var  ---> m <--- =e.className.match(integer_class_re);
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] +" has min_value > max_value",null,"FormManager");} ---> var  <--- value=parseInt(e.value,10)
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] 2],10)))){ ---> var  <--- msg=null;if(msg_list&&msg_list.
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable msg has already been declared in the same scope...
    [yuicompressor] ],10)))){var  ---> msg <--- =null;if(msg_list&&msg_list.integer
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] false,error:msg};}} ---> var  <--- m=e.className.match(decimal_class_re)
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable m has already been declared in the same scope...
    [yuicompressor] ,error:msg};}}var  ---> m <--- =e.className.match(decimal_class_re);
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] +" has min_value > max_value",null,"FormManager");} ---> var  <--- value=parseFloat(e.value);if
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable value has already been declared in the same scope...
    [yuicompressor] " has min_value > max_value",null,"FormManager");}var  ---> value <--- =parseFloat(e.value);if(
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] m[2])))){ ---> var  <--- msg=null;if(msg_list&&msg_list.
    [yuicompressor] 
    [yuicompressor] [WARNING] The variable msg has already been declared in the same scope...
    [yuicompressor] [2])))){var  ---> msg <--- =null;if(msg_list&&msg_list.decimal
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] ){var has_file_inputs=false;for( ---> var  <--- i=0;i var  <--- input=e[i];var type=
    [yuicompressor] 
    [yuicompressor] [WARNING] Try to use a single 'var' statement per scope.
    [yuicompressor] {var input=e[i]; ---> var  <--- type=input.type&&input.type.
    [yuicompressor] Compressed to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp/gallery-formmgr-css-validation-min.js
    
    lint:
         [echo] Using Rhino. Install nodejs to improve jslint speed, or skip with -Dlint.skip=true
         [java] Running JSLint on : /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/src/gallery-formmgr-css-validation/build_tmp/gallery-formmgr-css-validation.js
         [java]  
         [java] 
         [java] 	45, 54: Unescaped '-'.
         [java] 	var integer_class_re  = /(?:^|s+)yiv-integer(?::[([-+]?[0-9]+)?,([-+]?[0-9]+)?])?(?:s+|$)/;
         [java] 
         [java] 	45, 69: Unescaped '-'.
         [java] 	var integer_class_re  = /(?:^|s+)yiv-integer(?::[([-+]?[0-9]+)?,([-+]?[0-9]+)?])?(?:s+|$)/;
         [java] 
         [java] 	46, 54: Unescaped '-'.
         [java] 	var decimal_class_re  = /(?:^|s+)yiv-decimal(?::[([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?,([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?])?(?:s+|$)/;
         [java] 
         [java] 	46, 100: Unescaped '-'.
         [java] 	var decimal_class_re  = /(?:^|s+)yiv-decimal(?::[([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?,([-+]?(?:[0-9]+.?|[0-9]+.[0-9]+|.[0-9]+))?])?(?:s+|$)/;
         [java] 
         [java] 	56, 37: Unescaped '-'.
         [java] 	Y.FormManager.integer_value_re = /^[-+]?[0-9]+$/;
         [java] 
         [java] 	66, 37: Unescaped '-'.
         [java] 	Y.FormManager.decimal_value_re = /^[-+]?(?:[0-9]+.?|[0-9]*.[0-9]+)$/;
         [java] 
         [java] 	178, 25: 'msg' is already defined.
         [java] 	var msg     = null;
         [java] 
         [java] 	215, 15: 'm' is already defined.
         [java] 	var m = e.className.match(integer_class_re);
         [java] 
         [java] 	230, 25: 'msg' is already defined.
         [java] 	var msg = null;
         [java] 
         [java] 	256, 15: 'm' is already defined.
         [java] 	var m = e.className.match(decimal_class_re);
         [java] 
         [java] 	265, 23: 'value' is already defined.
         [java] 	var value = parseFloat(e.value);
         [java] 
         [java] 	271, 25: 'msg' is already defined.
         [java] 	var msg = null;
         [java] 
         [java]  
         [java] 
    
    local:
    
    deploybuild:
         [copy] Copying 3 files to /home/y/var/builds/workspace/gallery/build_tmp/src/yui3-gallery/build/gallery-formmgr-css-validation
    
    deployassets:
    
    deployskins:
    
    deploylang:
    
    deploydocs:
    
    deploy:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 3 seconds

    © 2006-2013 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info