Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Opening Links In New Window/Tab
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4042
Page 1 of 2

Author:  southcot [ 16. Feb 2016, 11:55 ]
Post subject:  Opening Links In New Window/Tab

Is there a way of making all links in an embedded iFrame open in a new tab or window?

Author:  TinyWebGallery [ 16. Feb 2016, 12:24 ]
Post subject:  Re: Opening Links In New Window/Tab

If you are on the same domain or you an use the external workaround: Yes.
Then you can change link targets:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/change-links-targets#e11

Best, Michael

Author:  southcot [ 16. Feb 2016, 14:42 ]
Post subject:  Re: Opening Links In New Window/Tab

Thanks for prompt reply Michael. Yes the iFrame content is on the same domain.

I'm not sure I fully understand, sorry to be thick:-

Where do I include the code:-
Quote:
<script>
var iframe_redirect_url = "http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo";
var change_iframe_links = "#iframe-navigation a";
var change_iframe_links_target = "_blank";
</script>

Author:  TinyWebGallery [ 16. Feb 2016, 16:47 ]
Post subject:  Re: Opening Links In New Window/Tab

No - if you are on the same domain you can simply set it in the shortcode. The script is only needed for the external workaround.
See the example above.

Best, Michael

Author:  southcot [ 17. Feb 2016, 10:48 ]
Post subject:  Re: Opening Links In New Window/Tab

In the example you quote the shortcode contains the following:-

Quote:
advanced_iframe securitykey="your key"
use_shortcode_attributes_only="true"
src="http://examples.tinywebgallery.com/example11/example.html"
id="advanced_iframe"
height="1000"
width="900"
show_part_of_iframe="true"
show_part_of_iframe_x="22"
show_part_of_iframe_y="85"
show_part_of_iframe_width="187"
show_part_of_iframe_height="121"
show_part_of_iframe_style="border: 2px solid #ff0000;"


... I'm sure I'm being a complete noobie but I'm at a loss to see which one relates to the opening of links.

Author:  TinyWebGallery [ 17. Feb 2016, 11:39 ]
Post subject:  Re: Opening Links In New Window/Tab

You have to look at example 10 if you are on the same domain!

Author:  southcot [ 17. Feb 2016, 11:52 ]
Post subject:  Re: Opening Links In New Window/Tab

Thanks should have looked above, the link you sent for me above was example 11. Trying to do too many things at once.

Author:  TinyWebGallery [ 17. Feb 2016, 12:26 ]
Post subject:  Re: Opening Links In New Window/Tab

sorry for being unclear - in one of my post before I wrote "See the example above" where I mean example 10.

Author:  southcot [ 17. Feb 2016, 12:33 ]
Post subject:  Re: Opening Links In New Window/Tab

I'm still not having much luck.

I'm trying to make sure that at:-

http://www.yarnwhispering.co.uk/cal-test/

... the "Test Link" URL opens in a new target. I can see that the div that contains the link is class="CalEvent". How do I phrase the shortlink to achieve this? Nothing I've tried works.

Author:  southcot [ 17. Feb 2016, 12:34 ]
Post subject:  Re: Opening Links In New Window/Tab

TinyWebGallery wrote:
sorry for being unclear - in one of my post before I wrote "See the example above" where I mean example 10.


I can see now how the confusion arose ... wonderful thing language :>}

Author:  southcot [ 18. Feb 2016, 10:13 ]
Post subject:  Re: Opening Links In New Window/Tab

southcot wrote:
I'm still not having much luck.

I'm trying to make sure that at:-

http://www.yarnwhispering.co.uk/cal-test/

... the "Test Link" URL opens in a new target. I can see that the div that contains the link is class="CalEvent". How do I phrase the shortlink to achieve this? Nothing I've tried works.



Can you advise?

Author:  TinyWebGallery [ 18. Feb 2016, 10:22 ]
Post subject:  Re: Opening Links In New Window/Tab

I don't know how your shortcode does look like.

Best, Michael

Author:  southcot [ 18. Feb 2016, 14:56 ]
Post subject:  Re: Opening Links In New Window/Tab

[advanced_iframe securitykey="xxxxxxxxxxxxxxxxxxxxx" src="http://www.yarnwhispering.co.uk/Calcium40.pl?Op=ShowIt&CalendarName=Events" onload_resize="true" width="100%"]

Author:  TinyWebGallery [ 18. Feb 2016, 15:50 ]
Post subject:  Re: Opening Links In New Window/Tab

And the configuration to change the link targets?

Author:  southcot [ 18. Feb 2016, 22:29 ]
Post subject:  Re: Opening Links In New Window/Tab

What configuration? I don't understand what you are asking me for sorry.

Page 1 of 2 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/