Not sure if this is what you''re asking, but you can do the following:
new Ajax.Request(''some_url'', ...)
(Check out prototypejs.org for details). That will issue a request to
the url as an ajax request... which will ask for an ''rjs''
response.
Better still, if you don''t need to embed the call in other javascript
then you can do this:
remote_function(:url=>''some_url'',
:submit=>''form_id'', etc.)
http://www.railsbrain.com/api/rails-2.0.2/doc/index.html?a=M001834&name=remote_function
On Mar 29, 6:28 pm, Koloa None
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> is it possible to call a rjs file from a javascript function??
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---