🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tego kawałka kodu nie rozumiem

#39661
From: Grzegorz Sobala
Date: Wed, 26 Apr 2006 08:28
35 lines
1997 bytes
Grzegorz Sobala napisał(a):
Jeszcze jedno
W tym fragmecie jest błąd:

> if (menu[iter][2]=='') htmlInside += '<div 
> rozum="get_submenu(this.parentNode)" class="menu" 

Tego fragmentu: rozum="get_submenu(this.parentNode)"
oczywiście nie ma.
> id="'+menu[iter][0]+'"><span onclick="get_submenu(this.parentNode)"
> ...
> 
> Do czego się tutaj odwołuje this i parentNode ?
> 
> ...
> class="icon">&nbsp;+&nbsp;</span>&nbsp;<span 
> class="title">'+menu[iter][1]+'</span><div class="menu">Proszę 
> czekać...</div></div>';
> else htmlInside += '<div class="menu" id="'+menu[iter][0]+'"><span 
> class="icon_link">&nbsp;>&nbsp;</span>&nbsp;<span class="title"><a 
> href="?kategoria='+menu[iter][2]+'">'+menu[iter][1]+'</a></span></div>';
> }
>  menuDiv.innerHTML = htmlInside;
> 
> }
> 
> 
> 
> A tak przy okazji zna ktoś może inne menu rozwijane które po wybraniu 
> jeden z pozycji będzie pamiętało co zostało wybrane i w takiej pozycji 
> pozostanie ?
> 
> 
> Pozdrawiam
> Grzegorz Sobala
Technical Details
Message-ID: <e2nb23$51e$2@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <e2n990$s93$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Grzegorz Sobala <gogo12@interia.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Tego kawałka kodu nie rozumiem
Date: Wed, 26 Apr 2006 10:28:29 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 35
Message-ID: <e2nb23$51e$2@atlantis.news.tpi.pl>
References: <e2n990$s93$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: abwl88.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1146040195 5166 83.8.235.88 (26 Apr 2006 08:29:55 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 26 Apr 2006 08:29:55 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: pl, en-us, en
In-Reply-To: <e2n990$s93$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit