I would like to load page into <div>
but I'm running out of ideas.
Getting all kind of errors depending of my attempt (mostly
Cross-Origin Request Blocked
), so, obviously this is not the way.
this $("#cmbsHost option:selected").text()
contains IP, lets say: 139.131.4.5
My last tries:
$.ajax({
type: 'POST',
url: "http://ip-api.com/#" + $("#cmbsHost option:selected").text(),
crossDomain: true,
//dataType: "jsonp",
dataType: 'html',
cache: false,
success: function (data) {
console.log(data);
}
and of course this one:
$("#dlgWhois").load("http://ip-api.com/#" + $("#cmbsHost option:selected").text());
So... how to do it sensei?