my godness, dont know what is wrong with me this days but i have a lot of problems with dhtmlxsuite
im tryin’ to save a new data
a part of my .php
formPrestamo = [
{type: "settings",position:"label-right"},
{type: "fieldset", name: "mydata", label: t + " : " + n, width:800, list:[
{type: "input", name: "idRut", value: r, label: "RUT"},
{type: "calendar", name: "f_ini", label: "Fecha Préstamo", readonly:true},
{type: "calendar", name: "f_fin", label: "Fecha Devolución", readonly:true},
{type: "input", name: "f_dev", label: "Devolucion"},
{type: "input", name: "multa", label: "Multa"},
{type: "newcolumn"},
{type: "button", value: "Generar Préstamo", command: "save"}
]}
];
var newFormPrestamo = layout.cells("a").attachForm(formPrestamo);
var dpform = new dataProcessor("recursos/formPrestamo.php");
dpform.init(newFormPrestamo);
//Generar Prestamo
newFormPrestamo.attachEvent("onButtonClick", function(name, command){
newFormPrestamo.save();
});
formPrestamo.php
<?php
require("../codebase/connector/form_connector.php");
$res=mysql_connect("localhost","root","12345");
mysql_select_db("inventario");
$formConn = new FormConnector($res);
$formConn->enable_log("prestamo.log");
$formConn->render_table("tblprestamo","idPrestamo","idRut,f_ini,f_fin,f_dev,multa");
?>
debugger:
Sending all data at once
Server url: recursos/formPrestamo.php?editing=true parameters
Server response received details
help?