Displaying 1 result from an estimated 1 matches for "pre_preview".
2005 Dec 27
0
update_field question
...s of the field).
So my idea was to have another <div> with the field contents, and then
remove or clear that <div> when the update_field is called (so it isn''t
displayed twice).
so in my rhtml file I have:
# this div is preloaded with field contents
<div id="pre_preview" class="post"><%= textilize(@song_words_chords)
%></div>
# this div is updated by update_field
<div id="preview" class="post"></div>
<%= observe_field "song_words_chords",
:frequency => 1,
:upda...