🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: javascript i frames w firefoxie

#39259
From: Sen
Date: Tue, 04 Apr 2006 10:08
31 lines
1590 bytes
> index.html:
> 
> <HTML><HEAD>
> <script>
> function dopisz(){
>
window.frames['ramka_lewa'].document.forms['formularz']['test'].value="nowa­wartosc";
> 
> }
> </script>
> </HEAD>
> <FRAMESET COLS="50%,50%">
> <!-- ponizej wazne jest onLoad -->
> <FRAME NAME="ramka_lewa" SRC="lewa.html" onLoad="dopisz()">
> <FRAME NAME="ramka_prawa" SRC="prawa.html">
> </FRAMESET></HTML> 
> 

Mam pytanie w tym temacie wiec zapytam tutaj:
jaka będzie komenda żeby funkcja zwóciła nazwe bieżącej ramki?
np w:
function dopisz(){
alert (?????)
}

zeby mi zwróciło 'ramka_lewa'?


-- 
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID: <3519.00000083.4432458c@newsgate.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl
References: <1143734658.365503.234850@i40g2000cwc.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newsfeed.silweb.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl
From: "Sen" <rwegrzynWYTNIJTO@o2.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: javascript i frames w firefoxie
Date: 4 Apr 2006 12:08:13 +0200
Organization: Onet.pl SA
Lines: 31
Message-ID: <3519.00000083.4432458c@newsgate.onet.pl>
References: <1143734658.365503.234850@i40g2000cwc.googlegroups.com>
NNTP-Posting-Host: newsgate.onet.pl
Mime-Version: 1.0
X-Trace: newsgate.test.onet.pl 1144145293 3242 213.180.130.18 (4 Apr 2006 10:08:13 GMT)
X-Complaints-To: abuse@onet.pl
NNTP-Posting-Date: 4 Apr 2006 10:08:13 GMT
X-Mailer: http://niusy.onet.pl
X-Forwarded-For: 83.14.141.34, 192.168.243.43
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.0.1)    Gecko/20060111 Firefox/1.5.0.1
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit