In my appjs project, I display a webpage with the following form in it. When the user submits this form, I get an internal server error. Can you please tell me how to handle this /submit_pariring_code request in my app.js?
I can handle this form submission in a javascript code but that will make me to allow cross domain in the server side (which i don't want to do.)
<form class="form-signin" action="/submit_pairing_code">
<h3 class="form-signin-heading">Please enter your Pairing Code</h3>
<input type="text" name="pairing_code" class="input-block-level" placeholder="Pairing Code">
<br/>
<input type="text" name="computer_name" class="input-block-level" placeholder="Your Computer Name">
<br/>
<button class="btn btn-large btn-primary" type="submit">Submit</button>
</form>