Profile
Achievement
alberomo's Recent Snippets
- All /
Descripción: Valida los campos de checkboxes obligatorios enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clase/. En el caso de que no sea validado, llama...
0
566
posted 13 years ago by alberomo
Descripción: Valida los campos de e-mail enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clase/. En el caso de que no sea validado, llama a la función err...
0
548
posted 13 years ago by alberomo
Descripción: Valida los campos que deben ser carácteres enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clase/. En el caso de que no sea validado, estable...
0
534
posted 13 years ago by alberomo
Nombre: ParseNIF.
Recibe: cadena texto. por ejemplo un campo de texto de formulario.
Devuelve: true si cadena es un NIF valido, sino false.
0
566
posted 13 years ago by alberomo
Descripcion: Validar preguntas obligatorias con radio
Recibe: Objeto radio de un formulario
Devuelve: true si hay alguno que se encuentra checked, sino false.
0
577
posted 13 years ago by alberomo
Descripcion: Evalua el formato de una cadena String en cuanto a si es una Dir. Correo.
Recibe: Cadena como un String
Devuelve: true si Cadena es direccion de Correo. false en caso de no tener formato adecuado.
0
688
posted 13 years ago by alberomo
Descripción: Valida los campos que deben ser un número enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clase/. En el caso de que no sea validado, llama a...
0
700
posted 13 years ago by alberomo
Descripción: Valida los campos obligatorios enviados por la función validaForm-->http://snipplr.com/view/58245/funcin-validaform-para-validar-formularios-con-parmetros-xml-y-nombres-de-clase/. En el caso de que no sea validado, llama a la función...
0
549
posted 13 years ago by alberomo
Descripción: Envia un formulario cuando se acciona el evento 'submit'
Devuelve: La función de validación con el objeto formulario del documento.
Requiere de: función envio_form() -->http://snipplr.com/view/58245/funcin-validaform-para-validar-...
0
686
posted 13 years ago by alberomo
Descripción: Recorre los objetos formulario buscando elementos/campos que deben validarse y que envia como parámetros. Llama a las diferentes funciones de validación, en función de los nombres de la clases introducidos.* Además, definie parámet...
0
796
posted 13 years ago by alberomo
Check if user has intruded a real email address. Return true (real email) or false (fake email).
Arguments: Element from a form.
From book Dom Scripting by Jeremy Keith
0
1141
posted 13 years ago by alberomo
Arguments: Element from a form.
Take that element and checks if is filled. If not, returns false. If is filled, returns true.
From book Dom Scripting by Jeremy Keith
0
1123
posted 13 years ago by alberomo
A JS function that put the focus in the form field associated to a label element whenever is clicked. The for atributte of the label element must match the id attribute of the associated form field.
It takes no arguments.
From book Dom Scripting by...
0
675
posted 13 years ago by alberomo
JS Function that style sibling elements of a given tag. Arguments: tag of the element We want siblings to style and name of the class we want to add. It needs the class to be styled (using CSS). It uses getNextElement function and addClass functions....
0
485
posted 13 years ago by alberomo
A JS function that makes bold the text of table rows ("tr" elements) when you "mouseover" them. It takes no arguments.
From book Dom Scripting by Jeremy Keith.
0
462
posted 13 years ago by alberomo
A JS function that stripes the tables ("table" elements) of a document. It takes no arguments. Add a new class ("odd") to the odd rows that needs to be styled using CSS. Use addClass function.
From book Dom Scripting by Jeremy Keith.
0
548
posted 13 years ago by alberomo
A JS function that returns the next element of a node. Argument: The node you want to know next element.
From book Dom Scripting by Jeremy Keith.
0
600
posted 13 years ago by alberomo
JS function that takes the accesskey attribute of the links of the document and display them at the end of the document. Takes no arguments.
From book Dom Scripting by Jeremy Keith.
0
501
posted 13 years ago by alberomo
JS function that add a link included in the cite attribute of the blackquote HTML element as sup element close to the blackquote. Takes no argument.
From book Dom Scripting by Jeremy Keith.
0
491
posted 13 years ago by alberomo
Description: A function that add a class to an element if the element doesn't have anyone, if it already has one, add a new class name.
Arguments: The elemento to which you want to add the class and the name of the class you want to add.
From boo...
0
899
posted 13 years ago by alberomo
Description: Execute different functions when the page loads in a better way than default onload JS event. Include it in the end of the JS document.
Arguments: Name of the function that you want to execute when the page loads.
Author: Simon Williso...
0
855
posted 13 years ago by alberomo