<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Frogx.Three &#187; Validacion de formularios, in live...</title>
	<atom:link href="http://www.frogx3.com/2007/09/05/validacion-de-formularios-in-live/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.frogx3.com</link>
	<description>Blog de diseño con recursos para diseño y desarrollo web - Tutoriales, tips, snippets, iconos, recursos, plantillas</description>
	<lastBuildDate>Thu, 09 Feb 2012 20:00:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Validacion de formularios, in live</title>
		<link>http://www.frogx3.com/2007/09/05/validacion-de-formularios-in-live/</link>
		<comments>http://www.frogx3.com/2007/09/05/validacion-de-formularios-in-live/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 22:45:37 +0000</pubDate>
		<dc:creator>Jorge</dc:creator>
				<enclosure url="http://media.frogx3.com/2007/09/01-1122_frogxthree.jpg" length="32000" type="image/jpg" />
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Desarrollo]]></category>
		<category><![CDATA[Librerías]]></category>
		<category><![CDATA[Referencias]]></category>
		<category><![CDATA[formularios]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[validacion]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.frogx3.com/2007/09/05/validacion-de-formularios-in-live/</guid>
		<description><![CDATA[Veo en el blog de Andres una libreria (LiveValidation) mas para hacer nuestros formulario un poco mas amigables se trata de una clase en js que te permite hacer validaciones...]]></description> 
			<content:encoded><![CDATA[<p align="center"><a href="http://www.frogx3.com/2007/09/05/validacion-de-formularios-in-live/livevalidation/"  rel="attachment wp-att-193" title="livevalidation"><img src="http://www.frogx3.com/wp-content/uploads/2007/09/01-1122_frogxthree.jpg" alt="01 1122 frogxthree Validacion de formularios, in live"  title="Validacion de formularios, in live" /></a></p>
<p>Veo en el blog de <a href="http://www.anieto2k.com/2007/09/05/livevalidation-sistema-de-validacion-javascript-en-vivo/"  target="_blank">Andres</a> una libreria (<a href="http://www.livevalidation.com/"  target="_blank">LiveValidation</a>) mas para hacer nuestros formulario un poco mas amigables se trata de una clase en js que te permite hacer validaciones al momento de tus campos del formulario de manera muy sencilla, dando la posibilidad de hacer comprobacion de todo tipo aqui la lista de posibles validaciones:<br />
<!--adsense#news--></p>
<ul>
<li><a target="_blank" href="http://www.livevalidation.com/examples#examplePresence"  title="Presence">Presence </a>(valida si el campo contiene algun valor o esta limpio)<a href="http://www.livevalidation.com/examples#examplePresence" title="Presence"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleFormat"  title="Format">Format</a> (comprueba una coincidencia en la cadena)</li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleNumericality"  title="Numericality">Numericality </a>(Comprueba que el valor sea numerico)<a href="http://www.livevalidation.com/examples#exampleNumericality" title="Numericality"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleLength"  title="Length">Length </a>(comprueba el largo de la cadena de texto)<a href="http://www.livevalidation.com/examples#exampleLength" title="Length"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleInclusion"  title="Inclusion">Inclusion </a>(valida si el valor escrito es igual o parcialmente igual a alguno de los listados)<a href="http://www.livevalidation.com/examples#exampleInclusion" title="Inclusion"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleExclusion"  title="Exclusion">Exclusion </a>(validad que el valor sea diferente a cualquiera incluido en la lista)<a href="http://www.livevalidation.com/examples#exampleExclusion" title="Exclusion"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleAcceptance"  title="Acceptance">Acceptance </a>(puede comprobar si un checked o radio esta seleccionado)<a href="http://www.livevalidation.com/examples#exampleAcceptance" title="Acceptance"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleConfirmation"  title="Confirmation">Confirmation </a>(Comprueba la coincidencia de dos campos distintos, ej. contraseña)<a href="http://www.livevalidation.com/examples#exampleConfirmation" title="Confirmation"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleEmail"  title="Email">Email </a>(Comprueba que el valor sea un correo electronico valido)<a href="http://www.livevalidation.com/examples#exampleEmail" title="Email"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleComposite"  title="Composite validations">Composite validations (combining validations)</a> (El nombre lo dice puedes combinar las validaciones anteriores)<a href="http://www.livevalidation.com/examples#exampleComposite" title="Composite validations"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleForms"  title="Validating entire forms">Validating entire forms</a> (valida todo el formulario)<a href="http://www.livevalidation.com/examples#exampleForms" title="Validating entire forms"><br />
</a></li>
<li><a target="_blank" href="http://www.livevalidation.com/examples#exampleStyles"  title="Styling it up">Styling it up </a>(permite pasarle un estilo css segun el resultado de la validacion)<a href="http://www.livevalidation.com/examples#exampleStyles" title="Styling it up"><br />
</a></li>
</ul>
<p>Tambien te permite definir la accion o mensajes a ejecutar en caso de que sea validado o falle, esta bastante completa y muy recomendable.</p>
<p>Ejemplo:</p>
<pre><code lang="javascript">var sayHello = new LiveValidation( "sayHello", { validMessage: "Hey there!" } );</code></pre>
<pre><code lang="javascript">sayHello.add( Validate.Presence,</code>              { failureMessage: "Don't just ignore me, I wanna be your friend!" } );</pre>
<pre><code lang="javascript">sayHello.add( Validate.Format,</code>              { pattern: /hello/i, failureMessage: "How come you've not said 'hello' yet?" } );</pre>
<p>Este ejemplo crea lo siguiente: Valida un campo de texto con id <em>sayHello</em> e imprime el mensaje <em>Hey there</em> en caso de que la validacion sea correcta, en caso contrario imprimiria <em>Don&#8217;t just ignore me, I wanna be your friend!</em> , que valida? valida que lo escrito en el campo sea igual a <strong><em>hello </em></strong>en caso de que lo escrito no este correcto imprimiria<strong><em> </em></strong><em>How come you&#8217;ve not said &#8216;hello&#8217; yet?</em></p>
<p>El codigo HTML seria:</p>
<pre id="line1">		&lt;<span class="start-tag">p</span>&gt; 	          Say “hello”:&lt;<span class="start-tag">input</span><span class="attribute-name"> class</span>=<span class="attribute-value">"LV_valid_field" </span><span class="attribute-name">id</span>=<span class="attribute-value">"sayHello" </span><span class="attribute-name">type</span>=<span class="attribute-value">"text"</span>&gt;&lt;<span class="start-tag">span</span><span class="attribute-name"> class</span>=<span class="attribute-value">"LV_validation_message LV_valid"</span>&gt;Hey there!&lt;/<span class="end-tag">span</span>&gt;

&lt;<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>&gt;

var sayHello = new LiveValidation('sayHello', { validMessage: 'Hey there!' });

sayHello.add(Validate.Presence, {failureMessage: "Don't just ignore me, I wanna be your friend!"});

sayHello.add(Validate.Format, {pattern: /hello/i, failureMessage: "How come you've not said 'hello' yet?" } );

&lt;/<span class="end-tag">script</span>&gt;

&lt;/<span class="end-tag">p</span>&gt;</pre>
<p>ver <a href="http://www.livevalidation.com/examples"  title="live validation examples" target="_blank">Ejemplos</a></p>
<p><a href="http://www.livevalidation.com/download"  title="Descargar Live Validation" target="_blank">Descargar Libreria</a></p>
<!-- SimpleReach Slide Plugin Version: 0.6.0 -->
<script type='text/javascript' id='simplereach-slide-tag'>
    __spr_config = {
      pid: '4e4ae1a5c2b219358b000005',
      title: 'Validacion de formularios, in live',
      ckw: 'Ajax,Desarrollo,formularios,Javascript,Librerías,Referencias,scripts,validacion,Web 2.0',
      chan: '',
      no_slide: '',
      slide_logo: true,
      pub: '2007-09-06 04:45:37',
      url: 'http%3A%2F%2Fwww.frogx3.com%2F2007%2F09%2F05%2Fvalidacion-de-formularios-in-live%2F',
      header: 'TAMBIEN TE RECOMENDAMOS'
    };
    var content = document.getElementById('simplereach-slide-tag').parentNode, loc;
    if (content.className){ loc = '.' + content.className; }
    if (content.id){ loc = '#' + content.id; }
    __spr_config.loc = loc || content;
    (function(){
    var s = document.createElement('script');
      s.async = true;
      s.type = 'text/javascript';
      s.src = document.location.protocol + '//d8rk54i4mohrb.cloudfront.net/js/slide.js';
      __spr_config.css = 'document.location.protocol + '//d8rk54i4mohrb.cloudfront.net/css/p/4e4ae1a5c2b219358b000005.css';
      var tg = document.getElementsByTagName('head')[0];
      if (!tg) {tg = document.getElementsByTagName('body')[0];}
      if (tg) {tg.appendChild(s);}
    })();
</script>
]]></content:encoded>
			<wfw:commentRss>http://www.frogx3.com/2007/09/05/validacion-de-formularios-in-live/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

