Another strange one:

I am trying to render a partial (dryml) from javascript. The javascript is a one-liner:

$('#agenda_items').html('<%=j render :partial => 'agendas/table_plus', :locals => { :this => @this } %>');

The partial is also rather trivial:

    <table-plus with="&this.agenda_items" fields="position, this">
<controls:><controls-with-up-dn/></controls:>
    </table-plus>

Unfortunately, in the <div id="agenda_items" > ... </div>

Instead of the table-plus and all its entries being rendered, the html (correct as near as I can tell) is rendered as text:

<div class="table-plus"><div class="header"><div class="search"> <form action="" class="search-form" method="get"><div class="hidden-fields"></div> <span class="label">Search</span> <input class="search" name="search" type="search"><input class="button submit-button search-button search-submit" type="submit" value="Go"></form> </div></div> <table> <thead><tr class="field-heading-row"> <th class="position-heading"> <a class="column-sort position-heading-link" href="/agenda_items/4-approval-of-last-month-s-minutes/ ****

The code in the partial renders correctly when invoked directly.

What am I missing?

Thanks,

Don Ziesig

--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to