Patch: fix for not accounting applets with onLoad events

David Faure david at mandrakesoft.com
Fri Nov 8 09:22:44 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 07 November 2002 23:45, Koos Vriezen wrote:
> On Thu, 7 Nov 2002, Koos Vriezen wrote:
> 
> > Hi,
> >
> > Pages with applets fires onLoad events before applets are loaded. The
> > attached patch fixes that. This also keeps the wheel spinning until they
> > are loaded.
> > It also adds some 'const' modifiers on a few KJavaApplet member functions.
> >
> > Btw. I noticed that applets declared as <APPLET NAME="myapplet" ..> can't
> > be accessed by using 'document.myapplet' anymore. I thought that that used
> > to be possible before, no?
Oops.

> Attached patch restores this old behaviour. Why was it changed?
Because the code used to look into document.all(), for document.foo,
which means many other types of things were looked into (all HTML elements).
I got rid of that and replaced with the only things document.foo looks into:
images and forms. Looks like I forgot applets, if you say they're part of it too.
Please commit.

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9y4Jk72KcVAmwbhARAgi4AJ9zIdtpW4F6w8p4DfGY0u3rG4mcwwCeIXC/
xvZCsRcKADh62YdEYFDHSnQ=
=XY8a
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list