Revision: 50961
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 10, 2011 01:13 by alberomo
Initial Code
function errorOutputPre(element_form){ errorOutput(element_form,msgType,msgLanguage,msgXmlDoc,errMsgCat); } function errorOutput(element_form,msgType,msgLanguage,msgXmlDoc,errMsgCat){ todoOk=false; switch(msgType){ case 'alert':alert(loadXmlReports(errMsgCat,msgLanguage,msgXmlDoc)); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; } break; case 'id' : document.getElementById('errMsg').innerHTML=loadXmlReports(errMsgCat,msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; document.getElementById('errMsg').innerHTML=''; } break; case 'sibling' : element_form.nextSibling.innerHTML=loadXmlReports(errMsgCat,msgLanguage,msgXmlDoc); element_form.onkeypress= function(){ this.style.backgroundColor='#FFFFFF'; this.nextSibling.innerHTML=''; } break; } element_form.style.backgroundColor='#FFFF99'; element_form.focus(); }
Initial URL
Initial Description
Establece la variable de validación en false y genera el mensaje de error de validación en función de los parámetros introducidos. Recibe el elemento y los parámetros de validación.
Initial Title
Funciones errorOutputPre y errorOutput
Initial Tags
forms
Initial Language
JavaScript