[Radiant] iFrame links
Oliver Baltzer
oliver.baltzer at nobits.com
Tue May 29 09:47:51 CDT 2007
Keith Bingman wrote:
> Yes. That is clear. I am trying to link directly to a page with an
> iFrame from an external link. Basically a bookmark. I think I know
> how to do it, but thought I see if there was something I was
> overlooking. Doesn't seem to be.
I understand. I would probably use Javascript to make this work. For
example a URL http://host/frameset.html?content.html would load the
frameset and a Javascript within this page can evaluate the query string
and load the appropriate page into the frame. This script may or may not
work:
<script type="text/javascript">
file = "default_content.html";
if (location.search.length > 0) {
file = location.search.substring(1);
}
document.write('<iframe src="' + file + '" name="contentframe"');
document.write(' width="400px" height="300px" frameborder="0" ');
document.write('scrolling="no">No Iframes</iframe>');
</script>
Oliver
More information about the Radiant
mailing list