On 26 Dec 2008, at 21:56, JHuizingh wrote:

>
> Is there a way that I can use the AJAX functionality built into rails
> to make this happen without having to do some sort of custom control
> mechanism to track all of the SubTasks on the client side?  Or is
> there a better strategy to go about this?
>
if the ajax update just re-rendered the list of subtasks then that  
would probably be enough.
Or if you want to use something fancier then you might have something  
like

def progress
   #find the subtask that completed and assign it to @subtask
   render :update do |page|
     page[dom_id(@subtask)].addClassName('complete')
   end
end

which will add the complete class to the div/span/whatever with the  
appropriate id. You could then style it so that such items had a green  
background or a check mark or whatever visual cue you want to give.

Fred

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to