- jQuery.ajax( "data/badjson.js" , {
- dataType: "text"
- }).success(function() {
- $( "<div/>" ).text( "Success OK" ).appendTo( "body" );
- });
- jQuery.ajax( "data/doesnotexist.ext" , {
- dataType: "text"
- }).error(function() {
- $( "<div/>" ).text( "Error OK" ).appendTo( "body" );
- });
+ jQuery.ajax( "data/badjson.js" , {
+ dataType: "text"
+ }).success(function() {
+ jQuery( "<div/>" ).text( "Success OK" ).appendTo( "body" );
+ });
+ jQuery.ajax( "data/doesnotexist.ext" , {
+ dataType: "text"
+ }).error(function() {
+ jQuery( "<div/>" ).text( "Error OK" ).appendTo( "body" );
+ }).success(function() {
+ if ( jQuery.browser.opera ) {
+ jQuery( "<div/>" ).text( "Error Fail (Opera)" ).appendTo( "body" );
+ }
+ });