Greetings. I'm having a small problem with trying to read the contents of an auto-generated .html file which I'm trying to pass to a div when a user clicks a link. If anyone can offer suggestion to make this work, it would be greatly appreciated. Here's what I have.
Pardon the formatting... Looks like a couple of spaces have been auto-inserted.
PHP Code:
<script>
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
function loadOnline(page) {
if (ns4) document.mainContent.src = page
else if (ie4) parent.mainContent.document.location = page
}
</script>
<a href="javascript:loadOnline('online.html');" onMouseover = "window.status='Who\'s online at AWW';return true">
Who's Playing
<div ID="mainContent">
<IFRAME name="mainContent" src="online.html" STYLE="display:none"
SCROLLING="No" WIDTH="300" HEIGHT="200" MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER="No">
</iframe>
</div>
Comment