I keep getting javascript alerts messages basically telling me that it can''t find the element. It obviously has something to do with the group.id value not being put in it''s place properly. here is the action method [code=]def list_all @group = TaskGroup.find(params[:id]) end [/code] Here is the rjs script [code=]page.hide ''task_group-#{group.id}'' page.replace_html ''task_group-#{group.id}'', :partial => "tasks/ task", :collection => @group.tasks page.visual_effect :blind_down, ''task_group-#{group.id}'' [/code] I have tried with and without the @, and am somewhat confused when to use the #{} vs the <%= %>, I am assuming rls files always use the #{} since most of the examples that I have seen use it that way. Thanks for the help --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
use "" instead of '''' On 5/28/07, chris <olsen.chris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I keep getting javascript alerts messages basically telling me that it > can''t find the element. It obviously has something to do with the > group.id value not being put in it''s place properly. > > here is the action method > [code=]def list_all > @group = TaskGroup.find(params[:id]) > end > [/code] > > Here is the rjs script > [code=]page.hide ''task_group-#{group.id}'' > page.replace_html ''task_group-#{group.id}'', :partial => "tasks/ > task", :collection => @group.tasks > page.visual_effect :blind_down, ''task_group-#{group.id}'' > [/code] > > I have tried with and without the @, and am somewhat confused when to > use the #{} vs the <%= %>, I am assuming rls files always use the #{} > since most of the examples that I have seen use it that way. > > Thanks for the help > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I have changed things around so that, that particular rjs file is not used anymore, but I will remember your tip for next time around. I didn''t think that ror was sensitive about quote types. Thanks for your help. On May 27, 9:28 pm, sishen <yedingd...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> use "" instead of '''' > > On 5/28/07, chris <olsen.ch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I keep getting javascript alerts messages basically telling me that it > > can''t find the element. It obviously has something to do with the > > group.id value not being put in it''s place properly. > > > here is the action method > > [code=]def list_all > > @group = TaskGroup.find(params[:id]) > > end > > [/code] > > > Here is the rjs script > > [code=]page.hide ''task_group-#{group.id}'' > > page.replace_html ''task_group-#{group.id}'', :partial => "tasks/ > > task", :collection => @group.tasks > > page.visual_effect :blind_down, ''task_group-#{group.id}'' > > [/code] > > > I have tried with and without the @, and am somewhat confused when to > > use the #{} vs the <%= %>, I am assuming rls files always use the #{} > > since most of the examples that I have seen use it that way. > > > Thanks for the help--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5/28/07, chris <olsen.chris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I have changed things around so that, that particular rjs file is not > used anymore, but I will remember your tip for next time around. I > didn''t think that ror was sensitive about quote types.Of course sensitive. "" will do replacement when needed, while '''' will not. Thanks for your help.> > On May 27, 9:28 pm, sishen <yedingd...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > use "" instead of '''' > > > > On 5/28/07, chris <olsen.ch...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > > > I keep getting javascript alerts messages basically telling me that it > > > can''t find the element. It obviously has something to do with the > > > group.id value not being put in it''s place properly. > > > > > here is the action method > > > [code=]def list_all > > > @group = TaskGroup.find(params[:id]) > > > end > > > [/code] > > > > > Here is the rjs script > > > [code=]page.hide ''task_group-#{group.id}'' > > > page.replace_html ''task_group-#{group.id}'', :partial => "tasks/ > > > task", :collection => @group.tasks > > > page.visual_effect :blind_down, ''task_group-#{group.id}'' > > > [/code] > > > > > I have tried with and without the @, and am somewhat confused when to > > > use the #{} vs the <%= %>, I am assuming rls files always use the #{} > > > since most of the examples that I have seen use it that way. > > > > > Thanks for the help > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---