I found that I needed to change the line

pylons.c.form = myAjaxForm

to

tmpl_context.form = ajax_form

to fix the problem.


mknabble wrote:
> 
> I am working through the JQuery AjaxForm widget tutorial located at:
>  
> http://www.turbogears.org/2.2/docs/deprecated/ToscaWidgets/Cookbook/JQueryAjaxForm.html.
>  
> 
> I am getting the following error when I load http://localhost:8080/entry:
> 
> "NameError: global name 'pylons' is not defined"
> 
> Has anyone worked through this tutorial? If so how did you get around this
> error?
> 
> 
-- 
View this message in context: 
http://old.nabble.com/JQuery-AjaxForm-widget-tutorial-pylons-error-tp34718554p34718562.html
Sent from the Turbogears General mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to