alberomo


Member since 07/25/2011

51 snippets

2305 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

alberomo's Recent Snippets



1 2 Next »
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 429 posted 12 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 404 posted 12 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 409 posted 12 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 436 posted 12 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 432 posted 12 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 531 posted 12 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 544 posted 12 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 401 posted 12 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 512 posted 12 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 617 posted 12 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 904 posted 12 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 841 posted 12 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 532 posted 12 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 354 posted 12 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 335 posted 12 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 399 posted 12 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 433 posted 12 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 344 posted 12 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 358 posted 12 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 691 posted 12 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 617 posted 12 years ago by alberomo
1 2 Next »