Hi all:

I am using ajax and forms toscawidgets2

following the example of documentation I'm trying to adapt at toscawidget2. 
My code is as follows:

-------------------------------------------------------------------------------------------------------------------------------
# -*- coding: utf-8 -*-
import tw2.core as twc
import tw2.forms as twf
from formencode import validators
from tgext.ajaxforms import ajaxloaded

@ajaxloaded
class TestForm(twf.TableForm):
     class child(twf.TableLayout):
        name = twf.TextField('Name', 
validator=validators.String(not_empty=True))
        surname = twf.TextField('Surname', 
validator=validators.String(not_empty=True))
    ajaxurl = '/form_show'
    action = '/form_submit'
    submit_text = "GO"
test_form = TestForm()

----------------------------------------------------------------------------------------------------------------------------

But  *ajaxurl* is not recognized  as a parameter of the form :-(

thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to