demexp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Demexp-dev] Any ideas to manipulate trees on a web page?


From: David MENTRE
Subject: Re: [Demexp-dev] Any ideas to manipulate trees on a web page?
Date: Tue, 10 Jan 2006 08:47:06 +0100

Hello John,

2006/1/9, skaller <address@hidden>:
> This technique uses the Domain Object Model, and Javascript
> to scan all the objects, and assign a MS specific extension
> attribute to some objects, namely:
>
>     if(targetElement.style.display == "none") {
>       targetElement.style.display = "";
>       srcElement.checked = true;
>     } else {
>       targetElement.style.display = "none";
>       srcElement.checked = false;
>     }
[...]
> It does NOT work on Firefox as far as I know: the tree
> is presented but the branches can't be closed.

Yep, I noticed that. :-(

> It is probably possible to do it by dynamically querying
> an internal database and generating the required HTML.
> This should be portable .. but it is very clumsy and
> slow because the whole page must be re-rendered on every
> state change.

Yes.

What I'm looking for is a way to have both: slow but working on old
browsers, fast and reactive for javascript/CSS capable browsers.

> With CSS is may be possible to emulate the MS style on
> all CSS capable browsers. (but you still have to have Javascript).

Yes, I've already copy/paste code to do that. It should be portable to IE.

Best wishes,
d.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]