Home How to use fancybox to show specific class of webpage?
Reply: 2

How to use fancybox to show specific class of webpage?

estrom kont
estrom kont Published in 2017-12-07 13:47:18Z


As you can see when you click on show catlinks you get the wikipedia page, How ever I would like to show the catlinks at the end of page.This area is defined in HTML as following:

<div id="catlinks" class="catlinks" data-mw="interface">

and this is the fancybox

<div> <a href="https://de.wikipedia.org/wiki/British_Broadcasting_Corporation" class="fancybox"  data-fancybox-type="iframe"> Show Catlink</a>  </div>
panther Reply to 2017-12-07 13:50:29Z

Just change target URL to correct one with anchor #catlinks.

    <a href="https://de.wikipedia.org/wiki/British_Broadcasting_Corporation#catlinks" class="fancybox"  data-fancybox-type="iframe"> Show Catlink</a>  
Janis Reply to 2017-12-07 14:05:26Z

If you want to display only part of the external page, then it is not possible to implement directly. You would need to create, for example, php file that reads content of that page, parses and outputs only the part you need. Then you would simply display that page in fancybox.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313638 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO