Jacinto they are in request.vars otherwise you wouldn't see them in the 
alert window. Let's walk through what is going on here:

1. You open the address in the browser http://127.0.0.1:8000/MFREG/test2 as 
the extension is omitted web2py assumes HTML and your HTML view is processed
2. That URL doesn't have any vars so the HTML made by BEAUTIFY 
response._vars shows them empty
3. When the document is ready your browser makes an ajax request that does 
have vars.
4. The server answers in json because you used the .json extension and you 
get the result in the success function in its data argument, you then show 
it in an alert.

As you can see the HTML is never changed after your initial request - that 
didn't have vars - hence why it keeps showing you exactly that.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to