Json api

Našao sam taj link i prije, ali nikako skemijati nešto da bude rezultata… :frowning:

Callback ti je obavezan i bez njega ti neće raditi ako želiš cross domain.
Probaj ovako (meni radi)

index.html

<!doctype html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$.getJSON("http://nekadomena.com/json.php?method=getAllUsers&callback=?", function(data) {
		console.log(data)
	});
});
</script>
</head>
<body>
</body>
</html> 

json.php

evo screenshot

[attachment=1]Screenshot - 03172012 - 06:41:47 PM.jpg[/attachment]

Zahvaljujem, to je to. Rep +