July 9th, 2013, 11:50 PM
Join Date: Jun 2013
Time spent in forums: 16 h 13 m 5 sec
Reputation Power: 1
Show div of another page in fancy box
I was just wondering if there is a way to show a specific div from another page in an iframe inside of fancybox or something when clicking a link. The iframe would only show the contents of the div from the other page, no other content shown from the other page. I have this set up so far,
<a class="newWindow" href="newpage.php#otherDiv" target="_blank">Click here</a>
<div id="otherDiv">stuff in here</div><br>
So the Fancybox code I have above isn't working the way I'd like it to because the iframe shows the whole new page instead of just the div contents.
Last edited by andy1212 : July 9th, 2013 at 11:56 PM.