hi,
i'm a beginner with web.py and i need some help. 
After processing user input i want to appear an animation (a loader with 
css), processing data from a form (it takes some while) and then i want to 
redirect them to another page.

how i can do this? 

here the code: 

import web
from web import form

render = web.template.render('templates/')

myform = form.Form(
  form.Textbox("Target",
               form.notnull,
              size="55"),
  )

urls = (
    '/', 'index'
)
app = web.application(urls, globals())

class index:
    def GET(self):
      form = myform()
      return render.index(form)
    
    def POST(self): 
        form = myform() 
        if not form.validates(): 
          return render.index(form)
        else:
          #
          # HERE THE ANIMATION IN INDEX PAGE
          # PROCESS DATA
          # REDIRECT RESULTS IN OTHER PAGE
          #
 
if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to