> > url:'{{=URL(r=request,f='call',args=['json','get_one_purchase_order_item', > parent_row_id])}}' > ==> > http://127.0.0.1:8000/purchase/default/call/json/get_one_purchase_order_item/parent_row_id > ? >
The problem is the the part inside the {{...}} delimiters is not Javascript -- it is Python code that gets executed on the server before the page is sent to the browser -- so it cannot reference Javascript variables that exist only in the browser. > var parent_row_id = row_data.id; > > jQuery("#"+subgrid_table_id).jqGrid({ > > url:'{{=URL(r=request,f='call',args=['json','get_one_purchase_order_item', > parent_row_id])}}', > Instead of the above line, try this: url:'{{=URL(r=request,f='call',args=['json','get_one_purchase_order_item '])}}' + '/' + parent_row_id So, the base URL is created by web2py on the server, and Javascript is used to append the parent_row_id in the browser. Anthony -- --- 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.