semi off topic, but is there or has someone considered being able to
get a tag back from hobo with a particular context via an ajax call?

<load-via-ajax-link update="dom_id_of_target" />

creates a link that calls hobo, grabs the appropriate data based on
the context at that point in the render (collection if class, item if
item, etc.), and then inserts it in the update target.  seems pretty
close to the existing part/update architecture but instead of updating
an existing part, it doesn't render the part until the link is
called.  I haven't dived into the internals of it to see how hard it'd
be to create a part context without rendering it.

On Jun 2, 10:21 am, 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.

Reply via email to