🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dynamicznie dodawanie zdarzenia

#51276
From: Antek
Date: Tue, 09 Apr 2013 06:43
9 lines
1357 bytes
Ja bym raczej skorzystał z addEventListener

W dniu 2013-02-22 09:58, TOUDIdel pisze:
> W dniu 22.02.2013 09:11, pawel2420 pisze:
>> document.getElementById('abc').onclick = function(){ocl(this.event);};
>
> Spróbuj:
> document.getElementById('abc').onclick = function(event){ocl(event);};
>
Technical Details
Message-ID: <kk0dam$dpj$1@news.task.gda.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.task.gda.pl!not-for-mail
References: <kg79l5$3b1$1@mx1.internetia.pl> <51273330$0$1208$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.task.gda.pl!not-for-mail
From: Antek <piotr@crmsoftware.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Dynamicznie dodawanie zdarzenia
Date: Tue, 09 Apr 2013 08:43:33 +0200
Organization: CI TASK http://www.task.gda.pl/
Lines: 10
Message-ID: <kk0dam$dpj$1@news.task.gda.pl>
References: <kg79l5$3b1$1@mx1.internetia.pl> <51273330$0$1208$65785112@news.neostrada.pl>
NNTP-Posting-Host: user-164-127-49-78.play-internet.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1365489816 14131 164.127.49.78 (9 Apr 2013 06:43:36 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Tue, 9 Apr 2013 06:43:36 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
In-Reply-To: <51273330$0$1208$65785112@news.neostrada.pl>
X-Antivirus: avast! (VPS 130408-2, 2013-04-08), Outbound message
X-Antivirus-Status: Clean
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit