I have written a javascript routine that populates a parent document
with a series of <iframe>s. Each <iframe> receives its contents from a
series of separate smaller HTML files. Of course my NN 4.8 browser
doesn't deal well with the <iframe> so I wrapped the code that generates
the <iframe> in <ilayer> tags. NN now recognizes the contents.
However within each of the 'content' files I have another javascript
routine that basically displays the file name (via document.URL &
document.write) of the content file. My IE 5.5 & Mozilla 1.5
understands this perfectly. However my NN responds to the document.URL
with the wrapper/parent document's URL, not it's own unique file name.
I've named/ID'd the iframes & ilayers. If the document.URL fails I can
still make use of the ilayer ID but I need to know the index into the
layers array. I can hard-code a index value into the
document.layers[x].name but given that the position of the particular
content file is dynamic within the parent, the index is going to be
wrong 9 out of 10 times. There doesn't seem to any way for an i/layer
to know who it is...
I've looked through my books (O'Reilly Javascript 1.5 and a couple
D/HTML books), plus the 'Net (event the FAQ's from this NG) and have
found nothing about how the NN 4.0 failure (to my way of thinking ;-)
can be resolved. While I calculate about 1% of the site visitors will
use the old NN 4.0+ browsers... it has now become something of a crusade
of mine LOL
The content files have <head</head><body></body> tags but no
<html></html> tags. I've tried removing the <head> tags and/or
including the <html> tags but it seems to have no effect.
Here is the code that generates the layers/frames within the parent
document (other than this code in a JS file, there's nothing fancy
within the parent. ie it's isn't framed - just plain HTML). This
snippet of code is done 10 times for each parent page...
lno - is the uniqueness identifier for each content file. It's a
sequence number but there are gaps in the sequence. So 123rbe.html is
not going to follow 122rbe.html nor will 124 follow 123.
html = html + '<ilayer ID=\'fy'+ lno + '\' SRC=\'rbk/' + lno +
'rbe.html\'></ilayer><nolayer >';
html = html + '<iframe ID=\'fy'+ lno + '\' SRC=\'rbk/' + lno +
'rbe.html?inp=r bk\' BORDER=0 +
HEIGHT=\'250\' WIDTH=\'100%\' FRAMEBORDER=\'1 \' MARGINWIDTH=0
MARGINHEIGHT=0> </iframe>';
html = html + '</nolayer>';
html = html + '<br>';
Thanks for any help!
Pete
with a series of <iframe>s. Each <iframe> receives its contents from a
series of separate smaller HTML files. Of course my NN 4.8 browser
doesn't deal well with the <iframe> so I wrapped the code that generates
the <iframe> in <ilayer> tags. NN now recognizes the contents.
However within each of the 'content' files I have another javascript
routine that basically displays the file name (via document.URL &
document.write) of the content file. My IE 5.5 & Mozilla 1.5
understands this perfectly. However my NN responds to the document.URL
with the wrapper/parent document's URL, not it's own unique file name.
I've named/ID'd the iframes & ilayers. If the document.URL fails I can
still make use of the ilayer ID but I need to know the index into the
layers array. I can hard-code a index value into the
document.layers[x].name but given that the position of the particular
content file is dynamic within the parent, the index is going to be
wrong 9 out of 10 times. There doesn't seem to any way for an i/layer
to know who it is...
I've looked through my books (O'Reilly Javascript 1.5 and a couple
D/HTML books), plus the 'Net (event the FAQ's from this NG) and have
found nothing about how the NN 4.0 failure (to my way of thinking ;-)
can be resolved. While I calculate about 1% of the site visitors will
use the old NN 4.0+ browsers... it has now become something of a crusade
of mine LOL
The content files have <head</head><body></body> tags but no
<html></html> tags. I've tried removing the <head> tags and/or
including the <html> tags but it seems to have no effect.
Here is the code that generates the layers/frames within the parent
document (other than this code in a JS file, there's nothing fancy
within the parent. ie it's isn't framed - just plain HTML). This
snippet of code is done 10 times for each parent page...
lno - is the uniqueness identifier for each content file. It's a
sequence number but there are gaps in the sequence. So 123rbe.html is
not going to follow 122rbe.html nor will 124 follow 123.
html = html + '<ilayer ID=\'fy'+ lno + '\' SRC=\'rbk/' + lno +
'rbe.html\'></ilayer><nolayer >';
html = html + '<iframe ID=\'fy'+ lno + '\' SRC=\'rbk/' + lno +
'rbe.html?inp=r bk\' BORDER=0 +
HEIGHT=\'250\' WIDTH=\'100%\' FRAMEBORDER=\'1 \' MARGINWIDTH=0
MARGINHEIGHT=0> </iframe>';
html = html + '</nolayer>';
html = html + '<br>';
Thanks for any help!
Pete
Comment