Explorar el Código

Added primitive ajax.php for testing

Foppe Hemminga hace 6 años
padre
commit
f13c13bfe8
Se han modificado 1 ficheros con 1 adiciones y 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 ). ')';
 }