NN4 frame script mishandlings
by =?iso-8859-1?Q?=22Alberto=2E=B7=2EVallini=22?= <vallinis(at)yahoo.com>
|
Date: |
Mon, 16 Oct 2000 08:17:35 +0200 |
To: |
hwg-techniques(at)mail.hwg.org |
Cc: |
hwg-languages(at)mail.hwg.org |
|
todo: View
Thread,
Original
|
|
I recently stumbled across an unexpected behaviour by NN4.x that I want to=
=20
share with you.
Maybe not all of you considered that it is possible to load an EXTERNAL js=
=20
file through document.write() giving as an argument a string where the=20
<script src...> tag is included.
Such an event must not be fired onLoad or would rewrite the document. You'd=
=20
call it from within another script tag while the document is still loading,=
=20
such as:
<script>document.write("<script=20
src=3D'myjs.js'></script>");document.close();</script>
</body>
Both IE and NN4 would load correctly the js file and you can invoke its=20
functions.
Strange thing happens when you follow the same procedure within a frameset.=
=20
Two frames, up and down. Actaully was not exactly the same code: was a=20
complete rewriting of the document in UP frame by a command invoked on the=
=20
DOWN frame, with:
top.up.document.write("<html><head><script=20
src=3D'myjs.js'></script></head><body></body></html>");top.up.document.close=
();
This loads in a similar way the external js in frame up; now what happens=20
is this: frame down will be able to execute and invoke the external js file=
=20
(written in the UP frame) functions on IE, but this time oddly enough NN4.x=
=20
will produce an error message of unrecognized object (function).
NN6 handles it correctly.
Weird, isn't it?
I want also to add, in case some of you is in touch with the netscape guys,=
=20
that NN6 still has great difficulties in resizing properly a form field=20
when it belongs to a class that assigns to it font family and font-weight.
If some of you has NN6 try to see what happens on NN6 to the textareas on=20
this document:
http://www.geocities.com/earthalliances/links.html
the exceed the right margin of the browser, overlapping the border of the=20
tables they were inscribed in.
Even weirder, isn't it?
Alberto.=B7.Vallini - vallinis(at)yahoo.com
http://www.geocities.com/earthalliances/
"visibilium omnium, et in-vi-si-bi-li-um."
_________________________________________________________
Do You Yahoo!?
Get your free (at)yahoo.com address at http://mail.yahoo.com
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA