How i can handle with jquery the "uncaught exception: [object Object]" firefox message when no response (json in this case) is recived? My problem is that all the rest of the script stop work!

This is part of the script
       $.ajax({
           url: "weather.php",
           action: "get_weather",
           dataType: 'json',
           success: function(json){
                ....
                do something
                ....
             },
            error: function ( request, errtype, e ) {
                alert ( 'An error occurred while loading this report. ');

            },
       });

Im using $.ajaxSetup( { timeout: 2000 } ); beacause the php sometimes dosnt response.

Reply via email to