[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdelibs/khtml/test
From:       Lars Knoll <Lars.Knoll () mpi-hd ! mpg ! de>
Date:       2000-06-28 12:44:46
[Download RAW message or body]

On Wed, 28 Jun 2000, Harri Porten wrote:

> David Faure wrote:
> > 
> > > Hacked it up myself.... I haven't looked yet but I doubt there is a lot
> > > of sites/scripts out there designed specifically for DOM due to support
> > > from current browsers. It doesn't even work on mozilla yet (although I
> 
> That's true. Direct DOM usage is still in its infancy.
> 
> Regarding DHTML: The examples I've seen so far didn't make usage of DOM
> methods. I'm not sure what DHTML can be considered to be something
> special anyway. To me it seems as if it's just simple manipulation of
> old-style browser and document properties. Hmmm. Styles are used,

Yes, but a lot of the methods are used very often and not too hard to
implement. I'm mainly thinking of non DOM stuff like 
node.innerHTML="some html code", which would make a big part of the
scripts used on web sites functional.

We should just remember, that most web sites use only a very small subpart
of the methods IE5 provides in his javascript bindings. IMO we should
concentrate on the DOM bindings and on these few methods used by a lot of
scripts at the moment.

> though. This allows some nice effects (see www.dynamicdrive.com).

This means implementing the bindings to the DOM Level2 CSS stuff in
jscript and fixing lot of the DOM CSS things, as a lot of that is still
only partly implemented (I did only the things I needed for static CSS
support). 
document.someElement.style="some fancy style declarations";
should however work already.

Cheers,
Lars

> 
> > > haven't figured out yet if this is mozilla's fault or mine ;))
> > 
> > Interesting. With IE5 (shame on me) I get this msg box:
> > Line: 142
> > Error: 'items' is not an object
> > 
> > (That's from
> >       var menu = eval(menuName);
> >       for (i = 0; i < menu.items.length; i++)
> > )
> 
> Might be the were a little bit too "robust" against errors. Right now
> there is no way to output error messages to the user. Message boxes
> would certainly be a bad idea (lesson learned from older Netscape
> versions) but a JavaScript console might be a good idea.
> 
> Harri.
> 

-- 
Lars Knoll                                 knoll@mpi-hd.mpg.de
  PGP pub key [6DADF3D5]: finger knoll@pluto.mpi-hd.mpg.de 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic