I have been using the ajax function alot lately, there is a level of neatness about it. What I wanna do is to make a delete by clicking a button but avoid a page reload, I used the ajax callback function, but the problem is that after clicking delete it shows working but nothing happens, it will only delete the desired entry after i have refreshed the page, thats not what i want, i want to click delete, see the item get deleted but without the page refresh!
*MY CODE* *CONTROLLER* *def deleteQuoteItem(): if db(db.quotation.id == request.args(0, cast=int)).delete(): if db(db.quotation.id is not None): redirect(URL('View_Quotation', args=(session.detailsQuote.id))) else: redirect(URL('registeredClients')) return locals()* *VIEW* {{=A('Delete',callback=URL('deleteQuoteItem', args=quote.id))}} Regards; Mostwanted -- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/bb3b7374-b5f2-4e07-9d84-ee4a2e91c716%40googlegroups.com.