You need to run event.preventDefault() to prevent the Click from automatically submitting the form
Building settings page
I have a fairly complex setting page (OAuth link for token, dynamically setting a select box, test button, etc) that I'd like to build.
I haven't seen much references to the front-end framework used in NodeBB (it is a custom framework, right? Not AngularJS, Backbone or anything like that). Is there a good tutorial that focuses on the settings page for a plugin or a thorough documentation for building custom pages somewhere?
Thank you in advance,
Best bet would be to check out how it is done here: https://github.com/NodeBB/nodebb-plugin-quickstart
Community here can help you on more detailed inquiries
All right, so I'll ask specific questions. I already have my plugin running, with a menu item and a menu page.
I'll first need to:
- Add a test button that will make an ajax call to a server side endpoint (so I'll need to build a server side endpoint) - this is to test connection to a third party, based on an API key
- I'll need to make a call to a second end point to get a list of items and display it in a <select>
Any tips on how to get started with that?