I am trying to take the div #content
of server list from here (same domain): http://bans.endlessgamers.com/index.php?p=servers
And embed it on a new page (same domain): http://www.endlessgamers.com/server-list/
The issue: I have managed to embed it fine with <iframe>
, but the server list is responsive and expands/collapses when clicked. When I expand, I have to scroll in the <iframe>
window to see the content. Is there a way to force my page to expand and collapse with the information in the <iframe>
div?
Note: To replicate my issue click on hostname of server to expand or collapse it.
<head>
<script>
$("iframe").contents().find("#content").width()
</script>
</head>
<body>
<iframe src="http://bans.endlessgamers.com/index.php?p=servers#content"></iframe>
</body>