Explorar o código

Added primitive ajax.php for testing

Foppe Hemminga %!s(int64=6) %!d(string=hai) anos
pai
achega
f13c13bfe8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ajax.php

+ 1 - 1
ajax.php

@@ -29,5 +29,5 @@ function test_function()
 	$return["favorite_restaurant"] = "McDonald's";
 
 	$return["json"] = json_encode($return);
-	echo json_encode($return);
+	echo $_GET['callback'] . '(' . json_encode($return ). ')';
 }