As mentioned in another thread, I started using
TAG.BUTTON('"label" _type="submit", _name="mybutton", _value=buttonvalue,
_onclick='ajax("stuff.load", ["val1","val2",
"val3"], "stuff_div")')
to add extra information to a page. Yesterday this was working; today I am
trying to get to work again. In between I stopped and started web2py
(invoked from an interactive shell, and using Rocket).
There are some lines in the controller above the button that provide the
val1,2,3:
INPUT(_name="val1", _type="hidden", value=val1))
Yesterday I was getting the values passed to the stuff() function, and had
results showing up in the stuff_div.
Now I am not getting the values, the results either don't show up, or show
up in a new page (with stuff.load rather than stuff.html)
When the results don't show up, httpserver.log shows a result of HEAD.
When I get a new page, the HEAD result is there followed by a GET, and my
debug spew on the console shows two invocations of stuff().
What did I do to myself? I've tried going back to various versions from
yesterday, but they all have the same symptom. The closest I have to a
guess is that there is some variable I had somewhere that was global, and
that stopping the server dropped that global into the bit bucket, and I
need to find that global. However, I don't get any compiler errors for
unknown values. The one global value I explicitly use is showing up with
the expected value.
Thanks
/dps
--
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.