Registration not working

13 years 10 months ago #137103 by KarlJ
Registration not working was created by KarlJ
Whenever the registration option is selected on the login module, a white screen appears with the following code:


var cbDefaultFieldBackground; function cbFrmChksubmitbutton() { var me = this.elements; var errorMSG = ''; var iserror=0; // loop through all input elements in form for (var i=0; i < me.length; i++) { // check if element is mandatory; here mosReq="1" if ( (typeof(me.getAttribute('mosReq')) != "undefined") && ( me.getAttribute('mosReq') == 1) ) { if (me.type == 'radio' || me.type == 'checkbox') { var rOptions = me[me.getAttribute('name')]; var rChecked = 0; if(rOptions.length > 1) { for (var r=0; r < rOptions.length; r++) { if (rOptions[r].checked) { rChecked=1; } } } else { if (me.checked) { rChecked=1; } } if(rChecked==0) { for (var k=0; k < me.length; k++) { if (me.getAttribute('name') == me[k].getAttribute('name')) { if (me[k].checked) { rChecked=1; break; } } } } if(rChecked==0) { // add up all error messages errorMSG += me.getAttribute('mosLabel') + ' : \n'; // notify user by changing background color, in this case to red if (cbDefaultFieldBackground === undefined) cbDefaultFieldBackground = ((me.style.getPropertyValue) ? me.style.getPropertyValue("backgroundColor") : me.style.backgroundColor); me.style.backgroundColor = "red"; iserror=1; } else if (me.style.backgroundColor.slice(0,3)=="red") me.style.backgroundColor = cbDefaultFieldBackground; } if (me.value == '') { // add up all error messages errorMSG += me.getAttribute('mosLabel') + ' : \n'; // notify user by changing background color, in this case to red if (cbDefaultFieldBackground === undefined) cbDefaultFieldBackground = ((me.style.getPropertyValue) ? me.style.getPropertyValue("backgroundColor") : me.style.backgroundColor); me.style.backgroundColor = "red"; iserror=1; } else if ((me.getAttribute('mosLength')) && (me.value.length > me.getAttribute('mosLength'))) { errorMSG += me.getAttribute('mosLabel') + " " + (me.value.length - me.getAttribute('mosLength')) + " \n"; // notify user by changing background color, in this case to red if (cbDefaultFieldBackground === undefined) cbDefaultFieldBackground = ((me.style.getPropertyValue) ? me.style.getPropertyValue("backgroundColor") : me.style.backgroundColor); me.style.backgroundColor = "red"; iserror=1; } else if (me.style.backgroundColor.slice(0,3)=="red") me.style.backgroundColor = cbDefaultFieldBackground; } } if(iserror==1) { alert(errorMSG); return false; } else { return true; } }

Can anyone suggest what the problem is?

Please Log in to join the conversation.

13 years 10 months ago #137114 by nant
Replied by nant on topic Re:Registration not working
Please follow 'Help Us Help You' article guidelines and post back details.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.154 seconds

Facebook Twitter LinkedIn