I have a form, when I click on submit button, I want to communicate with the server and get something from the server to be displayed on the same page. Everything must be done in AJAX manner. How to do it in Google App Engine? If possible, I want to do it in JQuery.
Edit: The example in code.google.com/appengine/articles/rpc.html doesn't work on form.
Edit: The rpc procedure doesn't work for form.
You can use jquery Form plugin to submit forms using ajax. Works very well.
$('#myFormId').submit(function() {
// submit the form
$(this).ajaxSubmit();
return false;
});
I'd add that in Firebug, you should see your ajax call pop up in the console. If you're getting the exception when you open that address, there's something up with your Python code. Maybe you're not correctly mapping your urls?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With