Trailing slash in ajax search

17 views
Skip to first unread message

Jim

unread,
Feb 23, 2009, 2:18:56 PM2/23/09
to web2py Web Framework
I'm using the AJAX search example from the manual.

def add_message():
response.title="Add Message"
return dict(form=FORM(INPUT(_id='keyword',
_onkeyup="ajax('add_issue_find',
['keyword'],'target');")),
target_div=DIV(_id='target'))

If I call this as "/add_message" it works fine.

If I call it as as "/add_message/", I get the page repeated at the
search box.

-----------------------------
Logo
| search [ ]
| --------------------------------
| Logo
| | search [ ]

I've tried testing for empty argument and setting keyword = '' but
that doesn't help.

I'm obviously new to programming, python and web2py so sorry if
there's an obvious fix.

mdipierro

unread,
Feb 23, 2009, 5:22:36 PM2/23/09
to web2py Web Framework
I cannot say without looking at the rest of the code.
Reply all
Reply to author
Forward
0 new messages