remote_function's JS output will not execute


this is weird. I'm calling this line and firebug is complaining about: 'invalid assignment left-hand side'

         <%= javascript_tag(remote_function(:url

> ctemplates_path (),:with

> 'resulttarget

sidebar_templateresult &templatetype=template&reslayout=sidebar',:method =>'get',:loading=>update_page { |page| spinnerdiv },:complete=>update_page { |page| page.hide spinnerdiv }) ) -%>

your :with option is wrong - it needs to be a javascript fragment,
eg :with => "'resulttarget=sidebar_templateresult'" Note the extra quote marks.


Thanks Frederick ! I just figured it out myself :slight_smile: ... Anyway, I hope this also helps other people