onbeforechange event error when calling getItemValue

I’m trying to validate a field using onbeforechange event. Everything is fine except, when I try to get the value from another input in the form. I get too much recursion error.

My code is as follows

attachEvent("onBeforeChange", function (id, old_value, new_value){
			var alumno = getItemValue("id");
			switch(id)
			{
			    case "registro":
					var xml = dhtmlxAjax.postSync("../data/alumnos.php","&op=repreg&registro=" + new_value + "&alumno=" + alumno);
					if(xml.xmlDoc.responseText)
					{
						alertar(xml.xmlDoc.responseText);
						return false;
					}
					break;
			}
			return true;
		});

Any help would be appreciated. Thank you.

Can’t reproduce locally
Could you provide us completed demo?
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Did you get this resolved?
I have the same problem.

gbarnes
Hello
Please, provide us completed demo to reproduce the issue.
docs.dhtmlx.com/doku.php?id=othe … leted_demo