jing3142
jing3142

Reputation: 1871

How do you submit a form to an app engine python application without refreshing the sending page?

As a newbie to app engine and python I can follow the examples given by Google and have created a python application with a template HTML page where I can enter data, submit it to the datastore and by reading back the data, just sent, recreate the sending page so I can continue adding data and store again. However what I would like to do is submit the data, have it stored in the datastore without the sending page being refreshed. It seems like a waste of traffic to have all the data sent back again.

Upvotes: 0

Views: 525

Answers (3)

dheerosaur
dheerosaur

Reputation: 15172

AJAX. If you want a specific resource concerning AppEngine -

http://code.google.com/appengine/articles/rpc.html (uses Python) is very good.

Here is a good link to understand Communication with Server on Google App Engine

Upvotes: 1

Carl
Carl

Reputation: 2934

Have a look at Pyjamas pyjs.org

It's a Python Compiler for web browsers. Write your client side in Python and Pyjamas will compile it into JavaScript.

Upvotes: -1

Amber
Amber

Reputation: 526573

Sounds like you want to look into AJAX. The simplest way to do this is probably to use the ajax functions in one of the popular Javascript libraries, like jQuery.

Upvotes: 8

Related Questions