Newbie here in jquery. I would like to know if is it possible to get the returned json data from someone's site and use it for my own purpose?
If you click the link below it will return a json response.
https://www.aag.com/svc/mortcalc.php?age=70&home_value=375000&_=1479367136330
To explain further, I would like to replace the age and home_value with my own data and use their functions.
Currently, here's how I do it:
$(document).on('change', '.age-range-drag', function() {
var getVal = $(this).val(),
getYear = 'Years Old';
$('.age-range-output').val(getVal + ' ' + getYear);
});
$(document).on('click', '.hvr-pop-reverse', function(){
var age = $('.age-range-drag').val(),
hv = $('#homevalue').val(),
cmb = $('#mortgagebanalance').val(),
finalValue = hv - cmb;
var link = 'https://www.aag.com/svc/mortcalc.php?age=' + age + '&home_value=' + finalValue;
console.log(link);
});
I don't know if it's do-able or not but I just wanted to try if someone did this before or if it's possible.