Преглед изворни кода

Added primitive ajax.php for testing

Foppe Hemminga пре 6 година
родитељ
комит
f13c13bfe8
1 измењених фајлова са 1 додато и 1 уклоњено
  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 ). ')';
 }