Going out on a limb here and assuming that you're using
rjs?
Use .replace_html('element_id', rendering_options) rather
than .insert_html(:positoin, 'element_id',
rendering_options)
On Sep 20, 2:43 am, athem <allan.m.mil... gmail.com> wrote:
> I'm trying to implement a select/option filter to
display a list on a
> page. I'm using observe_field to execute a controller
action
> (update_job_list), which then calls render
:partial=>"job_listings" in
> the div to be updated.
>
> The problem is that the list of jobs generated by the
partial inserts
> above, below, top, or bottom depending on the :position
option. But I
> would like to REPLACE the part of the page (div) being
updated, not
> insert the new list in addition to the existing content
in the div.
> Any idea how to replace the content?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrails googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribe googlegroups.com
For more options, visit this group at http://gro
ups.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---
|