[thelist] Using LAYER as a floating frame.

Michael Galvin mpgalvin at eircom.net
Mon Jun 19 16:20:40 2000


Hi

I've set up my site so that there's an IFRAME (in IE) in the middle which is
filled by template.html.  I have a select box which updates template.html
(via a perl script), thereby updating the middle of the page.  Simple.

However, I'm having BIG problems trying to do the same thing in NS.  I've
set up a layer with the same dimensions as the IFRAME, and I can see that
it's putting the first version of template.html in there, so everything
appears to be fine.  But I can't get it to update.

Code:

<LAYER NAME="links" src="template.html" WIDTH=272 HEIGHT=376
CLIP="0,0,202,411" VISIBILITY=show></LAYER>

The Select box:

<SELECT ...
onchange="javascript:load(this.options[this.selectedIndex].value);">

where each option in the box has a value parameter, like
<option
value="http://www.subclear.com/cgi-local/readcsv.pl?gif=humour">humour</opti
on>

The javascript to update template.html:

function load(page) {
    document.links.src
}

When I try selecting a different option on the dropdown, I get "Invalid
number of arguments", which I assume is down to the onchange... command.
What am I doing wrong?

And if you know the answer to that one, you might be able to help me with
the other problem, which is similiar.  I need to load the perl script into
template.html on loading, so I have:

<BODY ...
onload="javascript:load('http://www.subclear.com/cgi-local/readcsv.pl');">

which again works fine in IE but does nothing in NS.  This leads me to
suspect that even if I get rid of the above error, I'll still get no update.

Please help.  TIA.