Redirecting from an iFrame

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Redirecting from an iFrame

Post 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>
maxime
 
 
Posts: 114
Joined: Sat Apr 02, 2011 6:15 pm
Contact:

Re: Redirecting from an iFrame

Post 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 !
User avatar
alex4orly
 
 
Posts: 632
Joined: Mon Jan 20, 2014 8:17 am
Location: Australia
Contact:

Re: Redirecting from an iFrame

Post 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
Post Reply