Thanks, Joe, I'm getting some progress... When changed to ajax=False, the feedback form displays correctly on all the pages. However, with ajax set to False, the feedback is not being sent to my email.
Plus, how do I check if ajax gets triggered? my feedback (suggestions) function: def suggestions(): suggest_form=SQLFORM.factory( Field('your_email', label="Your email", requires=IS_EMAIL(error_message="Wrong email")), Field('question', 'text', label="Your suggestions", requires=IS_NOT_EMPTY(error_message="Enter suggestions")), formstyle='divs', submit_button="Send", separator=None, _name='suggestions', _class='formstyle') if suggest_form.process(formname='suggestions').accepted: if mail.send( to=mail.settings.sender, subject='New suggestion from', message=suggest_form.vars.question + '\n\n' + suggest_form.vars.your_email, encoding='utf-8'): response.flash = "Suggestions sent. Thanks!" elif suggest_form.errors: response.flash = "Errors in form. Try again." return dict(suggest_form=suggest_form) On Monday, August 12, 2013 8:30:44 AM UTC+2, Joe Barnhart wrote: > > How about if you make the ajax=False. Does it load then? When dealing > with this ajaxy stuff, you need to break it down into steps... > > 1. Does the function on the backend work as I expect? Is the url right? > > 2. Does the ajax ever get triggered? > > 3. Is there a place for the response to go? > > If you can separate those and test them one at a time, you can make > progress on the problem. > > -- Joe > > On Sunday, August 11, 2013 7:04:36 AM UTC-7, lesssugar wrote: >> >> Both web2py.js and jquery.js are loaded and accessible. There are no JS >> errors shown in console, all looks "normal" - but there's none .load >> request sent at all. >> >> The few pages where LOAD doesn't work include a respective form and other >> javascript. Commenting the javascript doesn't solve the problem. In >> addition, LOAD works on some other pages with forms. >> >> On Sunday, August 11, 2013 3:47:42 PM UTC+2, Anthony wrote: >>> >>> Id it possible either web2py.js or jQuery is not loaded on that page? >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.