def test
render :update do |page|
page << ' <SCRIPT type="text/javascript">'
page.call 'myfunction', 'pics\test1.jpeg'
page << ' </script>'
end
end
mozilla just displayes the following, my function is defined in the
layout and my goal is just to call this javascript function when this
page is loaded, don't know how why this won't work, this is just basic
stuff.
how is the remote method 'test' getting called from the view.
Do not include an :update parameter, otherwise the view is expecting a
simple render such as
render :text=>'Replaced with this' and wont understand the
render :update response block.