Bryan, could you post an example or even a recipe on how to use mouse click on a table-plus row to update a partial that might give more detail about the item in the row that was clicked.
Contacts lists are a great example here, you might have the name in the table but the rest of the info in a partial ... this would be a great recipe :-) On Jun 2, 12:21 pm, Bryan Larsen <[email protected]> wrote: > DRYML does not allow <% to be used inside an attribute, you'd need > something like: > > onmouseover="&remote_function(:update =>'partial_name', :url => { > :action => :update_options }, :id => @collection.id)" > > caveat: I never use remote_function, i always use unobtrusive > javascript in my own apps. > > Bryan > > On 10-06-02 08:57 AM, Togg wrote: > > > > > I have modified the collection to show a table-plus, and want to add a > > onmouseover event for each row. > > However I get a dryml compile error. How do I correctly specify the > > mouseover? > > > <collection: replace> > > <div> > > <table-plus fields="this, first_name, last_name" style="table- > > layout:fixed" without-page-nav> > > <this-view:><a>ID<view:id/></a></this-view:> > > <tr: onmouseover="<%= remote_function(:update => > > "partial_name", :url => { :action => :update_options }, :id => > > @collection.id) %>"/> > > <empty-message:>No person match your criteria</empty-message:> > > </table-plus> > > </div> > > > Thanks, > > Sebastian > > > Error Message: > > <code> > > compile error > > app/views/logs/index.dryml:26: syntax error, unexpected tIDENTIFIER, > > expecting '}' > > ...nction(:update => "partialname", :url => { :action => :updat... > > ^ > > app/views/logs/index.dryml:26: syntax error, unexpected $undefined, > > expecting '}' > > ....id) ; output_buffer.concat "\"}, {}] }, \n :empty_me... > > ^ > > app/views/logs/index.dryml:27: syntax error, unexpected '}' > > ; } }, }] }, > > ^ > > app/views/logs/index.dryml:28: syntax error, unexpected ',', expecting > > '}' > > ...t => proc {|__discard__| '' }, })) ; output_buffer.concat "\... > > ^ > > </code> -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
