🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Pobieranie zawartości elementu z iframe

#50073
From: Peter May
Date: Mon, 17 May 2010 18:20
27 lines
1780 bytes
W dniu 2010-05-17 19:38, Czesiu pisze:
> Witam!
> Mam taki kod:
> <html>
> <head>
> <meta http-equiv="content-type" content="text/html;
> charset=iso-8859-2">
> </head>
> <body>
> <iframe src="http://www.bezpiecznastrefa.gim3.edu.pl/" id="frame">
> </iframe>
> <script type="text/javascript">
> ramka = document.getElementById("frame");
> ramka.style.height = "1000";
> document.write(ramka.getElementById("content").innerHTML);
> </script>
> </body>
> </html>
> Wiem ,że nie będzie on działać ,ale chciałbym wykonać właśnie coś
> takiego ,aby pobrać innerHTML dowolnego elemntu ze strony w iframe i
> wyświetlić to na stronie. Jak to zrobić jakieś pomysły bo ja już nie
> mam?

Nie dawno był o tym wątek. Znajdź "odczytywanie zawartości iframa".

-- 
Peter
Technical Details
Message-ID: <hss1dt$grp$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <862736a8-a1ca-4744-b81a-f30a09ea298c@j27g2000vbp.googlegroups.com>

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!not-for-mail
From: Peter May <peter.may@onet.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Pobieranie zawartości elementu z iframe
Date: Mon, 17 May 2010 20:20:44 +0200
Organization: http://onet.pl
Lines: 27
Message-ID: <hss1dt$grp$1@news.onet.pl>
References: <862736a8-a1ca-4744-b81a-f30a09ea298c@j27g2000vbp.googlegroups.com>
NNTP-Posting-Host: 188.146.238.224.nat.umts.dynamic.eranet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1274120446 17273 188.146.238.224 (17 May 2010 18:20:46 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 17 May 2010 18:20:46 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4
In-Reply-To: <862736a8-a1ca-4744-b81a-f30a09ea298c@j27g2000vbp.googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit