Page 1 of 1

Redirecting from an iFrame

Posted: Wed Mar 01, 2017 5:44 am
by alex4orly
I implement a Google Map for my village using the Google API.
I invoke / call this from an iFrame on my site here

http://www.beleuramyhome.org.au/ in the middle, enter for Villa number 221 and see what happens, instead of this :

http://www.beleuramyhome.org.au/myloc.php?villa=221

But - the map opens inside the iFrame, I want it to open in a new page instead, here is my JS function which doesn't do what I want, it is called on the button through an Onclick event

<script>
function AddInputValue()
{
var domain = "http://www.beleuramyhome.org.au/myloc.php?villa="
var qstring = document.getElementById("villano").value;
var redirect = domain.concat(qstring);
window.location.href = redirect;
}
</script>

Re: Redirecting from an iFrame

Posted: Wed Mar 01, 2017 10:20 pm
by maxime
l have try the link you gave http://www.beleuramyhome.org.au/ and everything is ok, the map is not showing in a iframe !

Re: Redirecting from an iFrame

Posted: Thu Mar 02, 2017 2:54 am
by alex4orly
Hi Maxime,

Yes, I have in the meantime fixed it, I removed the iFrame and did the whole thing in the page itself
Thanks for your feedback and follow up

Cheers