Yes I got it working. Using the jqgrid_plugin, very nicely prepared by
parroit, I added an onSelectRow event to trigger the reload of an
iframe on the same page. The id of the selected row is posted as args
to the url. The controller function then uses the row_id to update the
view shown in the iframe.
Same concept as the Subgrid feature show in demo by jqgrid. Instead of
adding the details of the master grid to a subgrid I'm showing the
details in a formatted view page located in an iframe so the details
can be updated (as the rows are selected) without having to refresh
the whole page.
Jay
> > > > includesiframeto display /default/details view. Both work fine on
> > > > the initial load of the page. Using jqgrid onSelectRow event I tried
> > > > to add a function to update theiframepage.
>
> > > > ## View
> > > > <div>
> > > > {{=plugin_jqgrid(db.test,columns=['fields'],height=200)}}
> > > > </div>
> > > > <div>
> > > > <iframeid="myframe" src="{{=URL(r=request,f='details',args=2)}}"></
> > > >iframe>
> > > > </div>
>
> > > > ## model
> > > > jQuery(document).ready(function(){
> > > > jQuery("#%(id)s").jqGrid({ onSelectRow: function() {$
> > > > ('#myframe').attr('src',"{{=URL(r=request,f='details',args=2)}}");}
>
> > > > });
>
> > > > However when a row is selected theiframereturns Invalid Request.
> > > > It's not even calling the controller, just displays Invalid Request. I
> > > > haven't quite figured out how to get jqgrid and the server
> > > > communicating. I've been able to show grid values using alert and get
> > > > jquery to handle data sent from server but can't get jqgrid to trigger
> > > > the server and the server read jqgrid.Parameters.
>
> > > > Any suggestions as to the best way to updateiframecontents by