🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39350

Zdarzenia

#39350
From: koszu28
Date: Fri, 07 Apr 2006 16:22
19 lines
1307 bytes
Mam oto takie drzewo w XUL:

    <tree id="tree" flex="1" onselect="go(event)">
       <treecols id='treecol'>
	<treecol id="sex1"   flex="1" label="Name" primary="true" />
	<treecol id="color1" flex="1" label="Color" />
	<treecol id="attr1"  flex="1" label="Attribute" />
       </treecols>
    </tree>

i funkcje:

function go(obj) {
	alert(obj.currentTarget.id);
}
alert zwraca wartosc tree. Pytanie jest takie: Jak sprawdzic, ze 
zdarzenie pochodzi od obiektu <treecol> nie umieszczajac w nic uchwytu 
onselect.
Z gory dzieki za odp.
Technical Details
Message-ID: <e163ks$bh4$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.gazeta.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.gazeta.pl!not-for-mail
From: koszu28 <koszu28@interia.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Zdarzenia
Date: Fri, 07 Apr 2006 18:22:57 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 19
Message-ID: <e163ks$bh4$1@inews.gazeta.pl>
NNTP-Posting-Host: host-81-190-132-27.olsztyn.mm.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1144426972 11812 81.190.132.27 (7 Apr 2006 16:22:52 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 7 Apr 2006 16:22:52 +0000 (UTC)
X-User: koszu28
User-Agent: Thunderbird 1.5 (Windows/20051201)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit