Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building Ajax Form in Google App Engine

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.

like image 863
Graviton Avatar asked Oct 17 '08 10:10

Graviton


2 Answers

You can use jquery Form plugin to submit forms using ajax. Works very well.

$('#myFormId').submit(function() {
    // submit the form
    $(this).ajaxSubmit();
    return false;
});
like image 123
Rik Heywood Avatar answered Oct 17 '22 07:10

Rik Heywood


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?

like image 35
jamtoday Avatar answered Oct 17 '22 07:10

jamtoday