[web2py] Re: Newbie question on self-submitting form

2010-06-06 Thread NoNoNo
Can anyone help me with this? Still not get it.=_=

[web2py] Re: Newbie question on self-submitting form

2010-06-06 Thread mr.freeze
Try changing your redirect to this: redirect(URL(r=request, f='gotopage',args=request.vars.page_no)) On Jun 6, 6:50 am, NoNoNo coldspring830...@gmail.com wrote: Can anyone help me with this? Still not get it.    =_=

[web2py] Re: Newbie question on self-submitting form

2010-06-02 Thread NoNoNo
actually, what i was trying to achieve is provide a form to the visitor to input a page number if there are multi pages. The current problem is, when a page number is submitted, the visitor is not redirected to that page. I hope I made the question clear. Thank you. BTW, there is a CRUD to submit

[web2py] Re: Newbie question on self-submitting form

2010-05-27 Thread mdipierro
Do I understand correctly? When you submit a new db.whoelse. you want to be redirected to a page in the list that shows it. But messages are timestamped. When you submit a new now don't you get redirected to page 1 which shows the last message? Perhaps I do not understand what you mean. Massimo

[web2py] Re: Newbie question on self-submitting form

2010-05-26 Thread mdipierro
The problem is that form should be before select. Anyway you do not need to actions. I suggest the following changes: def index(): items_page=20 page_no=int(request.args(0) or 0) limitby=(items_page*page_no,items_page*page_no+items_page+1) #notice + 1

[web2py] Re: Newbie question on self-submitting form

2010-05-26 Thread NoNoNo
Hi Massimo, Thanks for the reply. I tried your codes and the Previous and Next works well, however the self-submitting form is still not functioning. Input any page number and submit, still on the current page. I'm not sure about the mechanism how the progrom respond to a form submission, because