Forum

Thread tagged as: Question, Members

Register and Login Members with Ajax

Hi guys, I'm looking for some help. I'm building an app to use with a Perch website and I'd like to handle the members from within Perch. This means I need to register and login users using AJAX and I was wondering if you reckon this is possible and if there are special considerations ? I found two great posts about using AJAX with perch: https://perchd.io/submitting-perch-forms-using-ajax https://www.quillstudios.com.au/bloglist/2015/validate-and-submit-a-form-using-ajax-with-perch-cms

but they are depending on being on the server to get the cms-form value. is it at all possible to generate this separately in Javascript ? or would it be possible to make an ajax call to a form on the server, parse out the cms-form value and then use it as part of a separate AJAX post ?

Any advice you could offer would be great. Thanks Dylan

Dylan Rynhart

Dylan Rynhart 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can submit the form with an ajax request, no problem. You can either dynamically fetch it from a special bare page, or just include it in the page and reveal it when you want to.