I have a form at the layout. LHS is combo for select the data, RHS is the form of checkbox, When I select the combo at first time, RHS can display the record of clicked checkbox from database. But when I select the combo at the second time or several time, it can not display new one record of clicked checkbox. Could you tell me what problem is or my syntax error.
userSecurityFormA.attachEvent("onChange", function (name, value){
if(name=="user_id"){
userSecurityFormA.load("php/userSecurityFormDataA_2.php?id="+value);
dhtmlxAjax.get("php/getUsername.php?user_id="+value, function(r){
r = r.xmlDoc.responseXML; // will give you DOM object
//console.log(r.firstChild.tagName);
var response = r.firstChild.childNodes[0].nodeValue;
userSecurityFormDataB(response);
});[/code]
Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.
I don’t mind to share my project. Here is the complete demo, it include sql and complete js and css. I use the mysql and php. Please change UM2\php\config\config.php for the database login and password.Please find the attachment as below.
I am sorry to inform how to delect the attachment. After I will question to your support team.
When I select the combo of username at LHS. The middle place will display that I saves checkbox record in db. The first time can display it. When I select the combo of username at second time. It cannot show me the other one username’s information of checkbox.
I hope that when I select combo of username, it can show me different information of user.
I can load the data in the middle side at second time, But it can include the first time record. so, it will display the duplicate record at second time, Could you tell me which method can delete the data when load data at second time before.