🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IFRAME kontra RELOADER

#39310
From: Yukiko
Date: Tue, 04 Apr 2006 15:24
39 lines
2264 bytes
--------ciach----------
>>>
>>> function jedna(t,u){
>>>    window.frames[t].document.location=url;
>>> }
>>> function dwie(t1,u1,t2,u2){
>>>    window.frames[t1].document.location=u1;
>>>    window.frames[t2].document.location=u2;
>>> }
>>> mozna tez na chama, jesli sobie tak zalozysz:
>>> function reload2frames(u1,u2){
>>>    window.frames['nazwa_z_palca1'].document.location=u1;
>>>    window.frames['nazwa_z_palca2'].document.location=u2;
>>> }
>>>
>>
-------------ciach----------------

no zasadniczo po dlugotrwalej walce zadzialalo ale niestety nie tak jak 
kolega zapodal !

parent.frames['Nazwa_Ramki'].location.href='URL';
i to tez dziala
parent.frames['Nazwa_Ramki'].document.location.href='url';

jaka jest roznica parent/window.frames....... ?
poki co nie wiem ale sie dowiem - no chyba za koledzy wiedza i sie podziela 
!

Natomiast co do wywolania funkcji jedna() to robie to w taki sposob
<A HREF=\"javascript:jedna()\">Testowy Link</A>

mam tylko pytanie jak na stronie  wywolac funkcje jedna() bez umieszczania 
jej w jakimkolwiek linku etc...
po prostu php generuje kod strony  i albo chce ta funkcje wywolac albo nie - 
jakie to proste :))

pozdrawiam
Technical Details
Message-ID: <e0u33d$bop$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <e0s1mt$8sm$1@nemesis.news.tpi.pl> <e0tclq$smr$1@nemesis.news.tpi.pl> <e0tr5v$hf2$1@nemesis.news.tpi.pl> <e0trq3$jcj$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Yukiko" <lotz@ilawa.net>
Newsgroups: pl.comp.lang.javascript
Subject: Re: IFRAME kontra RELOADER
Date: Tue, 4 Apr 2006 17:24:09 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 42
Message-ID: <e0u33d$bop$1@atlantis.news.tpi.pl>
References: <e0s1mt$8sm$1@nemesis.news.tpi.pl> <e0tclq$smr$1@nemesis.news.tpi.pl> <e0tr5v$hf2$1@nemesis.news.tpi.pl> <e0trq3$jcj$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: 80.50.15.6
X-Trace: atlantis.news.tpi.pl 1144164269 12057 80.50.15.6 (4 Apr 2006 15:24:29 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Tue, 4 Apr 2006 15:24:29 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit