My page displays google cordinates(22.079,82.139) as results, I would like to display the output as google map instead (as it appears here, http://maps.google.com/?q=22.079,82.139)
also you can refer my code
JavaScript
<script>
function changeChannel(){
document.getElementById("twitchFrame").src = "http://120.138.9.121:8888/psp/GetLRStatusWebLink?p=" +document.getElementById("channel").value;
}
function changeloca(){
document.getElementById("Mapframe").src = "http://120.138.9.121:8888/psp/GetLRStatuslocation?p=" +document.getElementById("channel").value;
}
</script>
First of all is there any other way to fetch these coordinates apart from an iframe? Because you cannot access contents of an iframe if it is fetched from different domains than yours
Yes it Is on a different domain, Is it possible fetch the coordinates from this page?
Once I have pulled the coordinates i would like to display it just like your example
The problem with iframe is that when you fetch it from another domain security rules won’t let you to access it with javascript. I think I’ve seen a workaround using PHP and file_get_contents() but I’m not sure if it’s 100% valid solution. Maybe you can find an API that returns JSON or XML instead of IFRAME?