I am using prototype 1.5 *I think*. I put version 1.5 in my public
javascript folder, so I assume that's the version it's picking up. Is
there an easy way to tell?
Here's the code for the form_remote_tag:
<% form_remote_tag :url => {:action => 'add_to_filter2'}, :html =>
{:name => "frm_categories"} do %>
Here's the code to create the checkboxes (clicking them returns
unexecuted javascript):
<%= check_box_tag
replace_spaces(category.name),replace_spaces(category.name), false,
:name => "category[#{category.name}]",
:onclick =>
'document.frm_categories.submit();' %>
Here's the code for the submit tag (clicking it returns executed
javascript:
<%= submit_tag 'filter' %>
On Jan 17, 10:04 am, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> > On Jan 17, 9:09 am, Jennifer Maas <[EMAIL PROTECTED]> wrote:
> > > I'm having a problem getting the rjs sent to a client from a
> > > controller to execute when I submit the form with an onclick event in
> > > a checkbox instead of using a submit tag. The returned js is rendered
> > > as text.
>
> Probably whatever custom code you have written to monitor the onclick
> event of a checkbox is doing an Ajax request with evalScripts set to
> false. Can you post that code?
>
> Also, what version of Prototype are you using?
>
> -justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---