<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: jacinmontava: validacion</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Mostrar todos los elementos de un formulario</title>
        <link>http://www.posteet.com/view/1297</link>
        <description>
        <![CDATA[<pre>&lt;html&gt;
&lt;body&gt;

&lt;form id=&quot;myForm&quot;&gt;
Firstname: &lt;input id=&quot;fname&quot; type=&quot;text&quot; value=&quot;Mickey&quot; /&gt;
Lastname: &lt;input id=&quot;lname&quot; type=&quot;text&quot; value=&quot;Mouse&quot; /&gt;
&lt;input id=&quot;sub&quot; type=&quot;button&quot; value=&quot;Submit&quot; /&gt;
&lt;/form&gt;

&lt;p&gt;Get the value of all the elements in the form:&lt;br /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var x=document.getElementById(&quot;myForm&quot;);
for (var i=0;i&lt;x.length;i++)
  {
  document.write(x.elements[i].value);
  document.write(&quot;&lt;br /&gt;&quot;);
  }
&lt;/script&gt;
&lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</pre> <a href="http://www.posteet.com/tags/DOM">[DOM]</a>  <a href="http://www.posteet.com/tags/formularios">[formularios]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/validacion">[validacion]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Thu, 02 Oct 2008 07:42:19 +0000</pubDate>

            <category>DOM</category>
            <category>formularios</category>
            <category>javascript</category>
            <category>validacion</category>
    
    </item>

  
    <item>
        <title>Comprueba que el NIF sea valido</title>
        <link>http://www.posteet.com/view/681</link>
        <description>
        <![CDATA[<pre>function nif_valido(campo)
{
abc=campo.value
nif=abc.substring(0,abc.length-1)
let=abc.charAt(abc.length-1)
if (!isNaN(let))
 {
  alert('El nif debe tener 8 digitos y una letra al final ')
  campo.focus()
  return false
 }
else
 {
  cadena=&quot;TRWAGMYFPDXBNJZSQVHLCKET&quot;
  posicion = nif % 23
  letra = cadena.substring(posicion,posicion+1)
  if (letra!=let.toUpperCase())
   {
    alert(&quot;NIF incorrecto.Revise la letra y no deje espacios. &quot;)
    campo.focus()
    return false
   }
 }

return(true)

}</pre> <a href="http://www.posteet.com/tags/formularios">[formularios]</a>  <a href="http://www.posteet.com/tags/javascript">[javascript]</a>  <a href="http://www.posteet.com/tags/validacion">[validacion]</a> ]]>        </description>
        <dc:creator>jacinmontava</dc:creator>
        <pubDate>Thu, 17 Jan 2008 13:16:03 +0000</pubDate>

            <category>formularios</category>
            <category>javascript</category>
            <category>validacion</category>
    
    </item>


</channel>
</rss>
