found the solution, made a mistake in the id to use in de load function. used the beta dhtmlXform 3.0 (see the blog).
see my function to load the formdata
[code]
function frmMarker() {
if (formMarker == null) {
window.dhx_globalImgPath = "/dhx/dhtmlxCombo/codebase/imgs/";
dhtmlx.skin = "dhx_skyblue";
dhtmlx.image_path = "/dhx/dhtmlxEditor/codebase/imgs/";
var formData = [
{type: "newcolumn"},
{type: "fieldset", label: "Location", list:[
{type: "settings", position: "label-left", labelWidth: 80 ,inputWidth: 335},
{type: "input", name: "name", label:"Markername", validate: "NotEmpty", value: ""},
{type: "input", name: "address", label:"Address", validate: "NotEmpty", value: ""},
{type: "input", name: "city", label:"City", validate: "NotEmpty", value: ""},
{type: "input", name: "zipcode", label:"Zip-code", validate: "NotEmpty", value: ""},
{type: "select", name: "provinceID", label:"Province", connector: "options_provinces.php", bind:"provinceID"},
]},
{type: "fieldset", label: "Star Rating", list:[
{type: "block", inputWidth: "auto", inputWidth: 435, list:[
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "1", label: "1"},
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "2", label: "2"},
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "3", label: "3"},
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "4", label: "4"},
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "5", label: "5"},
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "6", label: "6"},
{type: "newcolumn"},{type: "radio", name: "stars", position: "label-right", value: "7", label: "7"},
]},
]},
{type: "fieldset", label: "Property", list:[
{type: "settings", position: "label-left", labelWidth: "auto" ,inputWidth: 300},
{type: "label", label:"Marker location (Lat/Lon)"},
{type: "input", id: "lattitude", name: "lattitude", label:"LAT", validate: "^-?([1-8]?[1-9]|[1-9]0)[.]{1}[0-9]{1}", value: ""}, //[-]?[0-9]*[.]?[0-9]+
{type: "input", id: "longitude", name: "longitude", label:"LON", validate: "^-?([1]?[1-7][1-9]|[1]?[1-8][0]|[1-9]?[0-9])[.]{1}[0-9]{1}", value: ""}, //[-]?[0-9]*[.]?[0-9]+
{type: "label", label:"Marker near the following route"},
{type: "select", name: "route_id", label:"Route", connector: "options_routes.php", bind:"route_id"},
{type: "label", label:"Facilities"},
{type: "block", inputWidth: 300, labelWidth: 75, list:[
{type: "checkbox", name: "parking_on_site", bind: "parking_on_site", position: "label-right", value: "1", label: "Parking on site"},
{type: "checkbox", name: "child_friendly", bind: "child_friendly", position: "label-right", value: "1", label: "Child Friendly"},
{type: "checkbox", name: "invalid_friendly", bind: "invalid_friendly", position: "label-right", value: "1", label: "Invalide Friendly"}
]},
]},
{type: "block", inputWidth: "1", inputWidth: 500, list:[
{type: "button", name: "btn2", value: "Save Changes", command: "customCommand"},
{type: "button", name: "btn1", value: "Reset form data", command: "customCommand"},
{type: "newcolumn"},
{type: "button", name: "btn3", value: "Validate", command: "customCommand"},
{type: "button", name: "btn4", value: "Clear validation errors", command: "customCommand"},
{type: "newcolumn"},
{type: "label", name: "lblMsgValidate", id: "lblMsgValidate", style: "color: green", label:""},
]},
{type: "newcolumn"},
{type: "fieldset", label: "Contact", list:[
{type: "settings", position: "label-left", labelWidth: 80 ,inputWidth: 325},
{type: "input", name: "phone", label:"Phone", validate: "NotEmpty", value: "" },
{type: "input", name: "fax", label:"Fax", value: ""},
{type: "input", name: "website", label:"Website", value: ""},
{type: "input", name: "email", label:"E-mail", validate: "NotEmpty,ValidEmail", value: ""},
]},
{type: "fieldset", label: "Times to check in / check out", list:[
{type: "settings", position: "label-left", labelWidth: 80 ,inputWidth: 325},
{type: "input", name: "checkin", label:"Check in from", validate: "^([0-1]?[0-9]|[2][0-3]):([0-5][0-9])$", value: ""},
{type: "input", name: "checkout", label:"Check out from", validate: "^([0-1]?[0-9]|[2][0-3]):([0-5][0-9])$", value: ""},
]},
{type: "fieldset", label: "Marker Description", list:[
{type: "editor", name: "description", label: "", bind: "description",labelWidth: 1, inputWidth: 415, inputHeight: 240, value: ""},
]},
];
formMarker = dhxTabbar.cells("a5").attachForm(formData);
formMarker.setSkin("dhx_skyblue");
formMarker.attachEvent("onButtonClick", function(name) {
if(name=="btn1") {
// Reset data to original state
formMarker.load("connector_form_marker.php?id="+g_marker_id);
} else if(name=="btn2") {
// If valid save data and reload grid markers
if (formMarker.validate()){
formMarker.save();
markerGrid();
formMarker.setItemLabel("lblMsgValidate", "Saved Changes");
} else {
// form is not valid or filled in correctly
formMarker.setItemLabel("lblMsgValidate", "Form is NOT Valid");
}
} else if (name=="btn3") {
// validate form
if (formMarker.validate()) {
// alert ("Form is valid");
formMarker.setItemLabel("lblMsgValidate", "Form is Valid");
} else {
// alert ("Some fields are not Valid");
formMarker.setItemLabel("lblMsgValidate", "Form is NOT Valid");
}
} else if(name=="btn4") {
// reset validate errors
formMarker.resetValidateCss();
formMarker.setItemLabel("lblMsgValidate", "");
}
});
}
formMarker.load("connector_form_marker.php?id="+g_marker_id);
dpFrmMarker = new dataProcessor("connector_form_marker.php?id="+g_marker_id);
//dpFrmMarker.setTransactionMode("POST", true);
dpFrmMarker.init(formMarker);
}[/code]