Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.

How do I make it work with jquery ? #12

Open
bhandiwad opened this issue Aug 1, 2011 · 1 comment
Open

How do I make it work with jquery ? #12

bhandiwad opened this issue Aug 1, 2011 · 1 comment

Comments

@bhandiwad
Copy link

Hi,

What should I change to make it work with jquery instead of prototype ?

Thanks,

  • PB
@aarongough
Copy link
Owner

Hi!
Sorry for the slow response, it's been a crazy month so far!

The short answer is that there's no easy way to replace prototype with
jQuery in this case. The reason is that has_threaded_comments uses the Rails
remote_form_for helpers, which in turn use Prototype. If you were able to
replace the helpers with versions that used jQuery then that would solve the
issue, but obviously that's quite a lot of work.

There used to be a plugin for Rails called 'jRails' that replaced the
Prototype helpers with jQuery based ones... I can't find the project pages
now so it must be defunct. If you were able to find an old version of the
plugin that may be a good way to get started.

Best regards,
Aaron Gough


Aaron Gough
Software Developer

+1-647-746-7083
www.thingsaaronmade.com

On Mon, Aug 1, 2011 at 5:09 AM, bhandiwad <
[email protected]>wrote:

Hi,

What should I change to make it work with jquery instead of prototype ?

Thanks,

  • PB

Reply to this email directly or view it on GitHub:
#12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants