Hi All,
I'm trying to call data from a php script using getJSON.
my php script, php/Validate.php:
echo "Hello, World!";
die();
My getJSON bit:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#ValidateButton").click(function(){
$.getJSON("php/Validate.php",function(result){
alert(result);
});
});
})
</script>
<input type="button" value="Validate" id="ValidateButton"/>
I'm not having any luck getting anything output though.
Could someone point me in the right direction as to where I might be going wrong, please?
Thank you for any assistance offered.