DHTMLX Docs & Samples Explorer

load (id)

Loads data into form

Parameters:

  • id -the id of record , which need to be loaded
  • callback - the method which will be called after operation
dhxForm.load(12);
dhxForm.load({
  id:12, 
  some_property:"some_value"
});
dhxForm.load(12,function(id, response){
  alert("Data has been loaded");
});
// in case you load data to form from DB
myForm.load('php/formdata.php?id=1');// 'formdata.php' is a connector file or any php file that defines client-server logic

Description:

  • The method is purposed to be used with connectors on server-side. Names of parameters on server-side are equal to values of “name” attributes on client-side.

See also: