Perhaps get the id using that technique then use jquery('#myhiddenfieldid').val(id) store it in a hidden input field so the post back will then send it back to the web2py server code when you can easily access it. Or send it back right away using an ajax() call.
On Tuesday, March 5, 2013 12:19:45 PM UTC-6, open...@gmail.com wrote: > > Hi, > > I am newbee on Web2py, I am exploring it. I installed the jqGrid_plugin > that works fine. But now I should like to get back the id of the record or > the valor of a field but it is a JQuery that I don't know. I did this code: > > <h1>It is my table </h1> > <div class="tab" id="t" > > {{=plugin_jqgrid(db.image,columns=['id','titre'],height=300)}} > </div> > > <script> > jQuery('.tab').click(function(){jQuery('.tab').hide()}) > </script> > > I have found the link to the jqGrid Demo but I don't understand how to > adapt this code I found, in web2py. There is maybe a special way : > > jQuery("#a1").click( function(){ > var id = jQuery("#list5").jqGrid('getGridParam','selrow'); > if (id) { > var ret = jQuery("#list5").jqGrid('getRowData',id); > alert("id="+ret.id+" invdate="+ret.invdate+"..."); > } else { alert("Please select row");} > > Somebody can help me or give to me some links to read, > > Regards, > Bruno > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.