What do other people think about this? I never needed it because I use
firebug. Pros? Cons?

On Apr 21, 7:50 am, selecta <[email protected]> wrote:
> in views/web2py_ajax.html add the 'error' part
>
> function web2py_ajax_page(method,action,data,target) {
> ...
> 'success': function(text) {
>       jQuery('#'+target).html(text);
>       web2py_trap_form(action,target);
>       web2py_ajax_init();
>       },
>     'error': function(xhr, textStatus, errorThrown) {
>       jQuery('.flash').html(textStatus+' '+errorThrown+'
> '+xhr.responseText).slideDown();
>       }
>
> the 'error' part will make errors in web2py_components (LOAD) pop up
> in the .flash div
> helps me a lot debugging my apps
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en

Reply via email to