Banner in IFRAME does not open new IOS and ANDROID Window

Asked

Viewed 134 times

0

I have an application that in the footer I put an IFRAME that rotates the banners. It turns out that when you click it hangs and does not open the new window with the advertiser’s website.

Where am I going wrong?

<iframe id='a177cc70' name='a177cc70' src='http://www.meudominio.com.br/www/delivery/afr.php?refresh=3&amp;zoneid=3&amp;target=_blank&amp;cb=INSERT_RANDOM_NUMBER_HERE' frameborder='0' scrolling='no' width='320' height='50' allowtransparency='true'><a href='http://www.meudominio.com.br/www/delivery/ck.php?n=acf755b6&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.meudominio.com.br/www/delivery/avw.php?zoneid=3&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=acf755b6' border='0' alt='' /></a></iframe>

If anyone can help me, I really appreciate it

Hugs

1 answer

0

If you simply want to click on Iframe to take you to a new tab use the opposite, the <a> involving the <iframe>. Thus:

<a href='http://www.meudominio.com.br/www/delivery/ck.php?n=acf755b6&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><iframe id='a177cc70' name='a177cc70' src='http://www.meudominio.com.br/www/delivery/afr.php?refresh=3&amp;zoneid=3&amp;target=_blank&amp;cb=INSERT_RANDOM_NUMBER_HERE' frameborder='0' scrolling='no' width='320' height='50' allowtransparency='true'><img src='http://www.meudominio.com.br/www/delivery/avw.php?zoneid=3&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=acf755b6' border='0' alt='' /></iframe></a>
  • Hello Thiago. I actually use Iframe to rotate my banners and this way it doesn’t work because it gets lost in the rotations... I’d have some other alternative ?

  • The whole problem lies in Iframe, tells me the following in which mobile browser you tested?

  • I use Intel XDK but create the application and test on my Android. It rotates normal banners but when you click it crashes.

  • That’s where the problem comes in, you’re running inside an app, right? There is no new window for it to open, as it emulates a browser in your App to run this IFRAME. The only way to do this is by making a call from your App by opening another App (in case the browser) already at the desired url.

  • Got it...would you have an example so I can follow? I’m well lost in this and need to finish... Thanks

Browser other questions tagged

You are not signed in. Login or sign up in order to post.