
Originally Posted by
jscheuer1
If the new content is such that it should not change the root page in the browser, it can often be introduced via AJAX, and/or a popup div, and/or an iframe. If it is from another site, best to leave that (decision as to where to open it) to the user. Otherwise you might inadvertently violate TOS and/or copyright.
Yes, my beloved iframe. TOS-issues can be taken care of by explicitly mentioning the foreign URL. Here's a crazy idea:
Code:
<div id="popup_frame" style="font-family: verdana; font-size: 12px; "></div>
<a href="javascript: void(0)" onclick="document.getElementById('popup_frame').innerHTML='<div style=\'position: absolute; left: 0px; top: 25px; right: 0px; bottom: 0px\'><div style=\'position: relative; float: right; cursor: pointer; background: darkred; color: white; font-weight: bold; font-size: 13px; top: -25px\' onclick=\'document.getElementById("popup_frame").innerHTML=""\'> X <\/div><br><iframe id=\'ifr\' src=\'http://dynamicdrive.com\' style=\'position: absolute; width: 100%; height: 100%; border: 1px solid black; margin-left: -1px\' frameborder=\'0\'><\/iframe><\/div>'; document.getElementById('popup_frame').innerHTML='<div style=\'position: absolute; left: 10%; top: 10%; right: 10%; bottom: 10%; background: #dedede; color: black; border: 1px solid black; border-bottom:0\'>'+'<div style=\'position: absolute; text-align: center;height: 35px; left:50px; top: 5px; right: 50px; overflow-y: auto;overflow-x: hidden; z-index: 1; \'>'+document.getElementById('ifr').src+'<\/div>'+document.getElementById('popup_frame').innerHTML+'<\/div>'">popup DD</a>
Bookmarks