Hi,
I have tried the example from chapter 10.3 The ajax Function
Controller:
def one():
return dict()
def echo():
return request.vars.name
one.html:
{{extend 'layout.html'}}
<form>
<input id="name" onkeyup="ajax('echo',['name'], 'target')" />
</form>
<div id="target"></div>
No success, because the value of request.vars.name is None
Just for fun I have tried "request.now", "request.extension",
"request.folder" and so on instead of "request.vars.name" - these examples
worked fine, but I had no chance to get the value of name.
Version: web2py 1.98.2, started from source with Windows Python 2.7.2
and web2py 1.98.2 Python 2.5
What is wrong - any ideas?
Regards, Martin