for some reason, i am having the hardest time with the simplest possible
use of a visual effect..

i have done this a million times, and this is first time i have had this
much trouble.

here's what i am trying to do:

1. set up a div with a link_to_remote that references its containing div
[1].
2. once some backend processing is done, the generated javascript will
remove the div[2].

everything works fine.. the action gets fired off.. everything that
needs to happen happens.

except..

the div does not PUFF go away..

any help would be appreciated..

thanks!

[1]

,----
| <% dom_id =  "desc_entry...@desc.id}" -%>
| 
| <div id="<%= dom_id %> "  ><%= @desc.desc_type  %>: 
|   <%= text_field_tag "description...@desc.field_desc}]" %>
|   <%=link_to_remote "remove", :url => {:action => "remove_item", :desc_id => 
@desc.id}, :complete => visual_effect(:puff, dom_id, :duration => 0.5 ) %>
| </div>
`----

[2]

,----
| <div id="desc_entry_2 "  >Short Description: 
|   <input id="description_desc_short" name="description[desc_short]" 
type="text" />
|   <a href="#" onclick="new Ajax.Request('/admin/remove_item?desc_id=2', 
{asynchronous:true, evalScripts
| :true, onComplete:function(request){new 
Effect.Highlightfasdf(&quot;desc_entry_2&quot;,{duration:0.5
| });}, parameters:'authenticity_token=' + 
encodeURIComponent('e8447179b980016c867fd3d5de911e456b65edae'
| )}); return false;">remove</a>
| </div>
`----
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to