473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

yui-ext how can i use event for tree?

Helo
Does anybody know? It is a stupid question, but i am a newbie with it.
I tried to do like this

var tree = new Tree.TreePanel('tree-div', {
animate:true,
enableDD:true,
containerScroll: true
});

tree.click = function(node, e)
{
alert('test');
}

but no result, where am i wrong ? May be event has to be defined some
another way?
Thanks

Apr 5 '07 #1
3 1830
hash wrote:
Helo
Does anybody know? It is a stupid question, but i am a newbie with it.
I tried to do like this

var tree = new Tree.TreePanel('tree-div', {
animate:true,
enableDD:true,
containerScroll: true
});

tree.click = function(node, e)
{
alert('test');
}
You don't say what a Tree.TreePanel is. Assuming it is a DOM element,
you want

tree.onclick = function(node, e)

--
Ian Collins.
Apr 5 '07 #2
On Apr 5, 1:33 pm, "hash" <mdfiveh...@gmail.comwrote:
Helo
Does anybody know? It is a stupid question, but i am a newbie with it.
You shouldn't assume that readers can see or remember the subject when
reading the body of your post.

I tried to do like this

var tree = new Tree.TreePanel('tree-div', {
animate:true,
enableDD:true,
containerScroll: true
});

tree.click = function(node, e)
{
alert('test');
}

but no result, where am i wrong ? May be event has to be defined some
another way?
When discussing issues related to a particular library, you will
likely get much better help in a group dedicated to that topic. You
can access the Yahoo! User Interface Library group here:

<URL: http://tech.groups.yahoo.com/group/ydn-javascript/ >
--
Rob

Apr 5 '07 #3
On 5 ÁÐÒ, 09:46, "RobG" <r...@iinet.net.auwrote:
On Apr 5, 1:33 pm, "hash" <mdfiveh...@gmail.comwrote:
Helo
Does anybody know? It is a stupid question, but i am a newbie with it.

You shouldn't assume that readers can see or remember the subject when
reading the body of your post.
I tried to do like this
var tree = new Tree.TreePanel('tree-div', {
animate:true,
enableDD:true,
containerScroll: true
});
tree.click = function(node, e)
{
alert('test');
}
but no result, where am i wrong ? May be event has to be defined some
another way?

When discussing issues related to a particular library, you will
likely get much better help in a group dedicated to that topic. You
can access the Yahoo! User Interface Library group here:

<URL:http://tech.groups.yahoo.com/group/ydn-javascript/>

--
Rob
Thanks, Rob

Apr 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: screaminmartin | last post by:
I have been trying to implement Dustin Diaz's YUI Custom Events code on my website. You can see his demo here: http://www.dustindiaz.com/basement/custom-events.html. My demo website can be found...
3
by: salvadorvp | last post by:
Hi, here I have a very simple 'hello world' example that makes use of Yahoo! User Interface Library. I have a problem with my response string coming back as ''. I managed to check that everything...
1
by: Mitwa | last post by:
can some body tell me how to make hyperlink using YUI or javascript i dont wana use any html code for that i need pure java script code for that pls somebody help me thanks Mitwa
2
by: Erik Scofield | last post by:
Two problems. Okay, I have been trouble shooting this for many hours, doing as much research as possible. YUI calendar control in IE 6.0: Elements show through it. Can't figure this one...
1
by: v4vijayakumar | last post by:
My first post to comp.lang.php. Have you seen any website / examples, that uses PHP and YUI (Yahoo User Interface) ?!
7
by: My Pet Programmer | last post by:
Just a question in general, how do you guys feel about the YUI libraries from Yahoo? I've just noticed them, used one or two for a couple things, but I haven't dug too deep. ...
0
by: howa | last post by:
Hello Besides YUI grid / builder (http://developer.yahoo.com/yui/grids/ builder/), are there any alternatives such that it provides a very flexible way to define site grid yet conform to the...
0
by: clintonG | last post by:
Has anybody used AJAX together with YUI (Yahoo User Interface) Framework? I'm thinking of dumping ASP.NET 2.0 controls because they are so poorly developed and building the next project with YUI...
5
by: maya | last post by:
(function() { function initProductImagePanels() { var elements = YAHOO.util.Dom.getElementsByClassName('productImage', 'img'); for(var i = 0; i < elements.length; i++) { var el = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.