How does images.google.com render its frames??
I have two servers, that have external web viewable content, and an internal search engine that only admins can use. The external content cannot be edited, it was created with some proprietary technology. What I want to do is allow my internal admins to see a bar that allows them to perform administrative functions on the external site (index) by appending an "admin bar" to the bottom of the page, much like images.google.com appends a frame to the beginning of websites.
Using this code below I have figured out how to do this if the two were on the same server, rendering the external site in a frame and dynamically sizing that frame with javascript, but I cannot figure out how to do this in my situation because the two sites are on different servers/domains (which cause a javascript permission error).
Quite a few people have implemented similar features (images.google, the diggbar, facebook's bar, etc.), so i know it's possible, I just can't get any info on how to approach the problem. Any help is greatly appreciated
<html>
<head> <title>Parent frame</title> </head>
<body onload=”resizeFrame(document.getElementById(’childframe’))” bgcolor=”#cccccc”>
<script type=”text/javascript”>
// Firefox worked fine. Internet Explorer shows scrollbar because of frameborder
function resizeFrame(f) {
f.style.height = f.contentWindow.document.body.scrollHeight + “px”;
}
</script>
<p>Parent frame.</p>
<p>Parent frame.</p>
<p>Parent frame.</p>
<p>Parent frame.</p>
<p>
<iframe frameborder=0 border=0 src=”./child-frame.html” name=”childframe” id=”childframe”>
</iframe>
</p>
</body>
</html>