I think many fellow rails developers are using jquery extensively now
and some one may already solved my problem:
rails’ RJS facility has helper methods like “replace_html”, they
allowed you to render partials in the .rjs file and execute the
javascript which updates the page, how can I do that using jquery?
Thanks in advance!
I think many fellow rails developers are using jquery extensively now
and some one may already solved my problem:
rails’ RJS facility has helper methods like “replace_html”, they
allowed you to render partials in the .rjs file and execute the
javascript which updates the page, how can I do that using jquery?
Thanks in advance!
Difei
now I know “render :partial” works in js.erb, but why not “render
:action”? A “render :action => :new” gives “Rendered resources/_new” in
the log, why? Thanks!
I think many fellow rails developers are using jquery extensively now
and some one may already solved my problem:
rails’ RJS facility has helper methods like “replace_html”, they
allowed you to render partials in the .rjs file and execute the
javascript which updates the page, how can I do that using jquery?
Thanks in advance!
I have this in my application.html.erb
I have this in my application.js:
var $j = jQuery.noConflict();
This puts the jQuery instance into it’s own namespace, leaving the $
object from prototype alone.
I have successfully used the jRails plugin. You just drop it in and it changes the built in JS jelpers to use jquery. EnnerChi.com is for sale | HugeDomains
When I tried it, about 4 or 5 months ago, it did work, but it didn’t
play nice with prototype. Perhaps it’s improved since.
allowed you to render partials in the .rjs file and execute the
javascript which updates the page, how can I do that using jquery?
Thanks in advance!
I have successfully used the jRails plugin. You just drop it in and it
changes the built in JS jelpers to use jquery. http://ennerchi.com/projects/jrails
allowed you to render partials in the .rjs file and execute the
javascript which updates the page, how can I do that using jquery?
Thanks in advance!
I have successfully used the jRails plugin. You just drop it in and it
changes the built in JS jelpers to use jquery. EnnerChi.com is for sale | HugeDomains
This may or may not answer your question, but I recently discovered a
rails plugin called jrails which integrates jquery into rails very
similar to the way prototype comes in rails.
installing jrails allows you to use this:
<%= javascript_include_tag :defaults %>
to include jquery library files
and there are other benefits and integrations, some of which i am
pretty sure include helper methods for rjs.
so i would try looking into the details for jrails… hope that
helps… J
allowed you to render partials in the .rjs file and execute the
javascript which updates the page, how can I do that using jquery?
Thanks in advance!
I have successfully used the jRails plugin. You just drop it in and it
changes the built in JS jelpers to use jquery. EnnerChi.com is for sale | HugeDomains