Skip to content

Instantly share code, notes, and snippets.

@gregbarcza
Created December 25, 2013 14:09
Show Gist options
  • Save gregbarcza/8123480 to your computer and use it in GitHub Desktop.
Save gregbarcza/8123480 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$.get("demo.php",function(data,status){
alert("Data: " + data + "\nStatus: " + status);
});
});
});
</script>
</head>
<body>
<button>Próba ajax</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment