- jQuery.ajax({
- url: "data/jsonp.php",
- dataType: "jsonp",
- data: "callback=?",
- success: function(data){
- ok( data.data, "JSON results returned (GET, data callback)" );
- plus();
- },
- error: function(data){
- ok( false, "Ajax error JSON (GET, data callback)" );
- plus();
- }
- });
-
- jQuery.ajax({
- url: "data/jsonp.php?callback=??",
- dataType: "jsonp",
- success: function(data){
- ok( data.data, "JSON results returned (GET, url context-free callback)" );
- plus();
- },
- error: function(data){
- ok( false, "Ajax error JSON (GET, url context-free callback)" );
- plus();
- }
- });
-
- jQuery.ajax({
- url: "data/jsonp.php",
- dataType: "jsonp",
- data: "callback=??",
- success: function(data){
- ok( data.data, "JSON results returned (GET, data context-free callback)" );
- plus();
- },
- error: function(data){
- ok( false, "Ajax error JSON (GET, data context-free callback)" );
- plus();
- }
- });
+ jQuery.ajax({
+ url: "data/jsonp.php",
+ dataType: "jsonp",
+ crossDomain: crossDomain,
+ success: function(data){
+ ok( data.data, "JSON results returned (GET, no callback)" );
+ plus();
+ },
+ error: function(data){
+ ok( false, "Ajax error JSON (GET, no callback)" );
+ plus();
+ }
+ });