It's test app which work on my computer and don't work on server. On server
ajax return welcome page
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.
# -*- coding: utf-8 -*-
def index():
form=DIV(
DIV(
DIV(
LABEL(
'Choose item:',
_for='item'
),
SELECT(
OPTION(
'',
_value=0
),
OPTION(
'question',
_value=1
),
OPTION(
'gratitude',
_value=0
),
OPTION(
'complaint',
_value=0
),
_class='form-control'
),
_class='col'
),
DIV(
BUTTON(
'Send',
_type='button',
_id='send',
_name='send',
_class='btn'
),
_class='col'
),
_class='row'
),
DIV(
DIV(
P(
_id='results'
),
_class='col'
),
_class='row'
),
_class='cotainer',
_name='myForm'
)
return dict(form=form)
def getRequest():
import json
a = json.loads(request.vars.data)
return XML('We got your message')
# -*- coding: utf-8 -*-
from gluon.contrib.appconfig import AppConfig
configuration = AppConfig(reload=True)
response.generic_patterns = ['*'] if request.is_local else []
response.formstyle = 'bootstrap3_inline'
response.form_label_separator = ''
Title: {{=response.title or request.application}}
{{include}}
{{extend 'layout.html'}}
{{=form}}