Il 16/05/16 15:43, Vic Ding ha scritto:
> |
> defremoveProduct():    pid =request.args(0,cast=long)    form
> =crud.delete(db.product,pid)    response.js
> ='document.getElementById("product%s" %request.args(0,
> cast=int)).remove();'
> |
the first problem I see is that the last line has to be something like
this instead:

response.js = 'document.getElementById("product%s").remove();' %
request.args(0, cast=int)

:)

    M.

-- 
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