By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,474 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,474 IT Pros & Developers. It's quick & easy.

can a panel be added ad a node in a tree?

P: n/a
hello,

I'm very new to javascript and seem to be taking a lot of time getting
things to work :( I have to use YUI to build a page. Basically when
the page loads, it has a list of elements from the server. It then has
to show each of these elements in a panel along with other attributes
of the element. Each of these panels should have a button to allow the
user to obtain more detailed info about the element. So when th euser
clicks on this button, another request if sent to the server for more
info and this additional info should be added to another panel and
added as a 'child' in a sort of tree structure under the original
panel. Something like this:

element 1
add info abt 1
even more info abt 1
element 2

Now otehr than the panels containing the1st level info namely
'element', all other panels should be expandable n collapsible. I was
wondering if I could represent using a treeview element but am not
sure if I can add a panel as a node instead of a textnode. I hv 2
questions: Any other possible ways to represent this data?
Is it possible to hv panels as nodes in the tree?

Thanks in advance

Oct 24 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
SAM
jr***********@gmail.com a écrit :
hello,

I'm very new to javascript and seem to be taking a lot of time getting
things to work :( I have to use YUI to build a page.
and you say you are very new in JS ?
Something like this:

element 1
add info abt 1
even more info abt 1
element 2
You mean like this :
http://developer.yahoo.com/yui/treeview/
?
Now otehr than the panels containing the1st level info namely
'element', all other panels should be expandable n collapsible. I was
wondering if I could represent using a treeview element but am not
sure if I can add a panel as a node instead of a textnode. I hv 2
questions: Any other possible ways to represent this data?
Is it possible to hv panels as nodes in the tree?
of what I've understood (with a quick over read) is that a panel is not
more than a div with an id.
From there I supose you can add what you want to this div
(or to its son : <div class='bd').
--
sm
Oct 25 '07 #2

P: n/a
Unfortunately, no one responded :(

Oct 25 '07 #3

P: n/a
jr***********@gmail.com wrote:
Unfortunately, no one responded :(
Unfortunately, you don't know what Usenet is.

http://en.wikipedia.org/wiki/Usenet
http://jibbering.com/faq/
HTH

PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Oct 25 '07 #4

P: n/a
thanks. I was only looking for answers to my questions and I was
hoping someone could help.

Oct 25 '07 #5

P: n/a
On Oct 25, 4:29 pm, "jrrtolkien...@gmail.com" <gowr...@gmail.com>
wrote:
thanks. I was only looking for answers to my questions and I was
hoping someone could help.
Then try a YUI group. I think you said you tried and nobody
responded, but it is hard to tell as you didn't indicate what you were
replying to.

Oct 25 '07 #6

P: n/a
Thanks a bunch David. Will try that option and get back to you in case
I get stuck again.

Oct 25 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.