[jQuery] problem with object response

[jQuery] problem with object response

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<span>How i can handle <wbr>with jquery the <wbr>"uncaught exception:<wbr>
[object Object]<wbr>" firefox message <wbr>when theres no answer <wbr>from
a query (via <wbr>json in my case)?
</span>       $.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.
</body>
</html>