Ning Developer Docs

Is it possible to use JQuery to check the follow link when submitting a comment?

Our members usually don't click the follow link when they reply, which leads to delays or no answers. It bugs me that I can't change the setting to auto-follow new comments for users. Is there a way to do this by using JQuery? Change the follow link on comment submission? I'm barely a javascript developer, so any pointers are very much appreciated.
Thanks, Chris

Views: 0

Replies to This Discussion

jQuery is a powerful JavaScript library and worth learning. :) You can trigger the click event of the Follow link by rewriting the click event of the Add Reply button. But you may run into timing problems as Ning uses another library called dojo to handle its button clicks. You may find strange behavior as two javascript threads will be running at the same time. Best thing to do is create a new button that runs the code you'll find attached to both the Add Reply button and the Follow link, and use jQuery to inject the new button next to the original Add Reply button - label it Add Reply and Follow - so Users know what they're getting when they click it!

Start your research on the jQuery Events doc page: http://docs.jquery.com/Events
That's a great point, thanks for the clarification. I'm assuming this is a piece of cake for a seasoned developer like you - would you be interested to do this as a paid gig? Could you send me a quick estimate via private message?
Thanks,
Chris

RSS

© 2024   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service