[thelist] Using LAYER as a floating frame.

Erik Mattheis gozz at gozz.com
Mon Jun 19 17:16:06 2000


You need to tell Netscape the width of the layer each time as the second 
attribute of layers['x'].load(), like:

var ns = (document.layers) ? 1:0;

function Listen(theURL){
         if (ns) {
                 document.layers['theAudio'].load(audioURL,200);
                 document.layers['theAudio'].left=30;
                 }
         else {
                 document.all['ieAudio'].src = audioURL;
                 }
         }

I'm not sure why I also set left, but you might have to do that too, unsure.

See it in action at http://radiosavant.com/clients/ortho/

At 08:37 PM 6/19/00 +0100, you wrote:
>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>