Hi.
I am using two grids within a layout with a toolbar … I have a save button in the toolbar an i want to send the grid that is inside the form, but doing submit (); not send the content grid! using an input button function perfectly … please help me!!! I do not understand why using the javascript submit() dont function …
webBar.attachEvent(“onClick”, function(id){
if (id==“save”)
{
alert(“Guardar”);
alert(mygrid1.getRowsNum());
alert(mygrid1.getAllItemIds());
//document.form1.submit(); <<<---- HERE IS THE PROBLEM
}
thanks
here is my code
<?php
session_start();
include"iniciar_xmlgrid.php";
$no_seleccionados=iniciar_xmlgrid_cuentas(“SELECT * FROM cuentas WHERE tipo_cuenta=2”,xmldatos_cuentas_seleccion);
$seleccionados=iniciar_xmlgrid_cuadro(“SELECT * FROM cuentas WHERE tipo_cuenta=1”,xmldatos_cuentas_predeterminadas);
/* de ser necesario debe incluirse “abrir_conexion_DB.php” posterior a la carga del grid pues en la funcion “iniciar_xmlgrid” se abre y cierra la dicha conexion a base de datos*/
?>
Cargar Presupuesto Anual