On Monday, February 13, 2017 at 8:50:37 AM UTC-5, Andrea Fae' wrote: > > Why ajax('{{=URL('test', '')}}',[],''); it's not working? " 'test' is a > normal controller for test with a view very simple - see below > > eventDrop: function(event, delta, revertFunc) { > if (!confirm("Sei sicuro di fare questa modifica?")) { > revertFunc(); > } > else > { > ajax('{{=URL('test', '')}}',[],''); > } >
What are you expecting to happen? In your call to ajax(), you do not specify any target for the response, so nothing will happen on the browser side once a response is received. It might help if you read the relevant documentation: http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#The-ajax-function. Anthony -- 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. For more options, visit https://groups.google.com/d/optout.