[web2py] Re: jqgrid onSelectRow refresh iframe

2010-05-15 Thread Jason Lotz
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

[web2py] Re: jqgrid onSelectRow refresh iframe

2010-05-14 Thread Jason Lotz
The first and obvious thing I see I did wrong was trying to put python into jquery script. jQuery(#%(id)s).jqGrid({ onSelectRow: function() { $ ('#myframe').attr('src',{{=URL(r=request,f='details',args=2)}});} But I still don't understand how I can make it dynamic src, or how to get jquery

[web2py] Re: jqgrid onSelectRow refresh iframe

2010-05-14 Thread Jason Lotz
Sorry to keep replying to myself. Just wanted to let you know my progress. After stepping back and evaluating the case I managed to configure it as I wanted. ## View jQuery(document).ready(function(){jQuery(#%(id)s).jqGrid({ onSelectRow: function(postdata){$(#myframe).attr('src',/MyApp/

[web2py] Re: jqgrid onSelectRow refresh iframe

2010-05-14 Thread AsmanCom
Hi, i am working with JQGrid plugin too. Just to get your approach right.. you´ve realised a Master-Detail function with the JQGrid? Very nice! May i can use this too. Is the code(for Controller, View) from your last post working, right now? Did you made any changes to the ##model code? I am