Hi,
I am trying to use onclick javascript event, but this doesn''t work:
<%= check_box("attending_ip", ''pm_xray'',{},
''y'', :onclick=>"insertToDo();" ) %>
how do I make this correct?
thanks,
--~--~---------~--~----~------------~-------~--~----~
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 found the solution:
<%= check_box("attending_ip", ''pm_xray'',
{:onclick=>"insertToDo(''pm_xray'');"},
''y'' ) %>
On Jan 18, 4:24 pm, kimda
<ki...-yOgK34DqlZDxlngV0+vsch2eb7JE58TQ@public.gmane.org>
wrote:> Hi,
>
> I am trying to use onclick javascript event, but this doesn''t
work:
>
> <%= check_box("attending_ip", ''pm_xray'',{},
> ''y'', :onclick=>"insertToDo();" ) %>
>
> how do I make this correct?
>
> thanks,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Daniel Kim wrote:> I found the solution: > > <%= check_box("attending_ip", ''pm_xray'', > {:onclick=>"insertToDo(''pm_xray'');"}, ''y'' ) %>can you explain what part relates to what please. thanks -- 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-/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 -~----------~----~----~----~------~----~------~--~---