🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Wywołanie w kilku miejscach tej samej funkcji

#51287
From: Adam Aniołek
Date: Fri, 12 Apr 2013 20:16
10 lines
1163 bytes
Witam
Mam taki problem:
Jest sobie funkcja powiedzmy a() i jest ona jeden raz na stronie 
- jest ok działa
druga sytuacja
ta sama funkcja a() ale w kilku miejscach <a href=# onclick=a()> 
- i tu nie działa w firebagu pokazuje a() is not a function.

Jak zrobić aby jedną funkcję można było wywołać gdy występuje x 
razy na stronie?
Technical Details
Message-ID: <kk9q3h$ocu$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

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: Adam Aniołek <adam@poczta.emiter-uslugi.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Wywołanie w kilku miejscach tej samej funkcji
Date: Fri, 12 Apr 2013 22:16:52 +0200
Organization: CI TASK http://www.task.gda.pl/
Lines: 10
Message-ID: <kk9q3h$ocu$1@news.task.gda.pl>
NNTP-Posting-Host: 195.191.181.101.cable.sta.tczew.net.pl
Mime-Version: 1.0
X-Trace: news.task.gda.pl 1365797809 24990 195.191.181.101 (12 Apr 2013 20:16:49 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Fri, 12 Apr 2013 20:16:49 +0000 (UTC)
User-Agent: KNode/4.10.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit