Revision: 50638
Updated Code
at October 10, 2011 05:53 by alberomo
Updated Code
function IsOnlyCharsValida(element_form){ element_form.value=eliminaEspacios(element_form.value);//Elimina los espacios del texto incluido en el campo. if(IsOnlyChars(element_form.value) == false){ //hace una llamada a la función IsOnlyChars errorOutputPre(element_form); } }
Revision: 50637
Updated Code
at September 10, 2011 00:53 by alberomo
Updated Code
function IsOnlyCharsValida(element_form){ element_form.value=eliminaEspacios(element_form.value);//Elimina los espacios del texto incluido en el campo. if(IsOnlyChars(element_form.value) == false){ //hace una llamada a la función IsOnlyChars errorOutputPre(element_form); } }
Revision: 50636
Updated Code
at August 30, 2011 01:04 by alberomo
Updated Code
function IsOnlyCharsValida(element_form,msgType,msgLanguage,msgXmlDoc){ element_form.value=eliminaEspacios(element_form.value);//Elimina los espacios del texto incluido en el campo. if(IsOnlyChars(element_form.value) == false){ //hace una llamada a la funci�³n IsOnlyChars todoOk=false; switch(msgType){ case 'alert':alert(loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc)); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; } break; case 'id' : document.getElementById('errMsg').innerHTML=loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; document.getElementById('errMsg').innerHTML=''; } break; case 'sibling' : element_form.nextSibling.innerHTML=loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; this.nextSibling.innerHTML=''; } break; } element_form.style.backgroundColor='#FFFF99'; } }
Revision: 50635
Updated Code
at August 30, 2011 00:43 by alberomo
Updated Code
function IsOnlyCharsValida(element_form,msgType,msgLanguage,msgXmlDoc){ element_form.value=eliminaEspacios(element_form.value);//Elimina los espacios del texto incluido en el campo. if(IsOnlyChars(element_form.value) == false){ //hace una llamada a la función IsOnlyChars todoOk=false; switch(msgType){ case 'alert':alert(loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc)); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; } break; case 'id' : document.getElementById('errMsg').innerHTML=loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; document.getElementById('errMsg').innerHTML=''; } break; case 'sibling' : element_form.nextSibling.innerHTML=loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; this.nextSibling.innerHTML=''; } break; } element_form.style.backgroundColor='#FFFF99'; } }
Revision: 50634
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 30, 2011 00:39 by alberomo
Initial Code
function IsOnlyCharsValida(element_form,msgType,msgLanguage,msgXmlDoc){ element_form.value=eliminaEspacios(element_form.value);//Elimina los espacios del texto incluido en el campo. if(IsOnlyChars(element_form.value) == false){ //hace una llamada a la función IsOnlyChars todoOk=false; switch(msgType){ case 'alert':alert(loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc)); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; } break; case 'id' : document.getElementById('errMsg').innerHTML=loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; document.getElementById('errMsg').innerHTML=''; } break; case 'sibling' : element_form.nextSibling.innerHTML=loadXmlReports('IsOnlyChars',msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; this.nextSibling.innerHTML=''; } break; } element_form.style.backgroundColor='#FFFF99'; } }
Initial URL
Initial Description
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, establece la variable todoOk en false y pinta el error. Recibe: El elemento y los parámetros del fomulario. Llama a: función IsOnlyChars-->http://snipplr.com/view/58251/funcin-isonlychars/ y eliminaEspacioshttp://snipplr.com/view/58250/funcin-eliminaespacios/
Initial Title
Función IsOnlyCharsValida
Initial Tags
forms
Initial Language
JavaScript