Pergunta

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.

Foi útil?

Solução

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

Outras dicas

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.

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top