var controllerURL = 'https://www.vdl-as.nl/vdlparts/realjax/VdlParts.LoginControl.rhax'; var LoginControlModelMapping = new Array(); LoginControlModelMapping['Login.LoginNaam'] = new Array('txtUserName'); LoginControlModelMapping['Login.LoginPassword'] = new Array('txtPassword'); LoginControlModelMapping['Login.AccepteerVoorwaarden'] = new Array('chkAccepteerVoorwaarden'); var LoginControlStubs = { txtUserNameBufferedChanged : function(callback,context) { var el = document.getElementById(LoginControlControls.txtUserName); created_buffered_update('LoginControl', 'txtUserName','Login.LoginNaam', encode(getElementValue(el)), LoginControlControllerId); }, txtPasswordBufferedChanged : function(callback,context) { var el = document.getElementById(LoginControlControls.txtPassword); created_buffered_update('LoginControl', 'txtPassword','Login.LoginPassword', encode(getElementValue(el)), LoginControlControllerId); }, chkAccepteerVoorwaardenBufferedChanged : function(callback,context) { var el = document.getElementById(LoginControlControls.chkAccepteerVoorwaarden); created_buffered_update('LoginControl', 'chkAccepteerVoorwaarden','Login.AccepteerVoorwaarden', encode(getElementValue(el)), LoginControlControllerId); }, btnLoginClicked:function(callback,context) { return new ajax_request(controllerURL + '?_method=ButtonClicked&_sender=btnLogin&_controller_id=' + LoginControlControllerId,'',callback, context, 'True'); return false; }} document.getElementById(LoginControlControls.txtUserName).onkeyup = LoginControlStubs.txtUserNameBufferedChanged; document.getElementById(LoginControlControls.txtPassword).onkeyup = LoginControlStubs.txtPasswordBufferedChanged; document.getElementById(LoginControlControls.chkAccepteerVoorwaarden).onkeyup = LoginControlStubs.chkAccepteerVoorwaardenBufferedChanged; document.getElementById(LoginControlControls.chkAccepteerVoorwaarden).onclick = LoginControlStubs.chkAccepteerVoorwaardenBufferedChanged; document.getElementById(LoginControlControls.btnLogin).onclick = LoginControlStubs.btnLoginClicked;