Ver Mensaje Individual
  #11 (permalink)  
Antiguo 14/12/2010, 09:30
jjcarrizo
 
Fecha de Ingreso: diciembre-2010
Mensajes: 2
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: Dudas con jqgrid

mi problema no es ajeno al de ud... , es que, no puedo cargar los datos a la base de datos..., puedo mostrar los datos en la grilla pero cuando agrego los datos en dicha grilla,no lo hace en la base de datos..., si podrian facilitarme un ejemplo de como envia los datos el formulario q viene en el navegador incluido...
codigo del script javascript
$(function(){
jQuery(\"#list\").jqGrid({
url:'listaordencompra.php',
datatype: 'xml',
mtype: 'GET',
colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'],
colModel :[
{name:'id',index:'id', width:55,editable:false,editoptions:{readonly:true ,size:10}},
{name:'invdate',index:'invdate', width:80,editable:true,editoptions:{size:10}},
{name:'amount',index:'amount', width:60, align:\"right\",editable:true,editoptions:{size:10 }},
{name:'tax',index:'tax', width:60, align:\"right\",editable:true,editoptions:{size:10 }},
{name:'total',index:'total', width:60,align:\"right\",editable:true,editoptions :{size:10}},
{name:'note',index:'note', width:100, sortable:false,editable: true,edittype:\"textarea\", editoptions:{rows:\"2\",cols:\"20\"}}

],
pager: jQuery(\"#pager\"),
rowNum:10,
rowList:[10,20,30],
sortname: 'id',
sortorder: 'desc',
viewrecords: true,
caption:\"Navigator Example\",
editurl:\"editar.php\",
height:210
}).navGrid('#pager',
{}, //options
{height:280,reloadAfterSubmit:false}, // edit options
{height:280,reloadAfterSubmit:false}, // add options
{reloadAfterSubmit:false}, // del options
{} // search options
);
jQuery(\"#list\").jqGrid('editGridRow', \"new\",{} );


});