Article View: pl.comp.lang.javascript
Article #50072Pobieranie zawartości elementu z iframe
From: Czesiu
Date: Mon, 17 May 2010 17:38
Date: Mon, 17 May 2010 17:38
21 lines
1656 bytes
1656 bytes
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?
Technical Details
Message-ID:
<862736a8-a1ca-4744-b81a-f30a09ea298c@j27g2000vbp.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!postnews.google.com!j27g2000vbp.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!postnews.google.com!j27g2000vbp.googlegroups.com!not-for-mail From: Czesiu <tonyhouk@o2.pl> Newsgroups: pl.comp.lang.javascript Subject: Pobieranie zawartości elementu z iframe Date: Mon, 17 May 2010 10:38:26 -0700 (PDT) Organization: http://groups.google.com Lines: 23 Message-ID: <862736a8-a1ca-4744-b81a-f30a09ea298c@j27g2000vbp.googlegroups.com> NNTP-Posting-Host: 83.21.188.89 Mime-Version: 1.0 X-Trace: posting.google.com 1274117906 14559 127.0.0.1 (17 May 2010 17:38:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 17 May 2010 17:38:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j27g2000vbp.googlegroups.com; posting-host=83.21.188.89; posting-account=IyKkLgoAAAC26yZr7z3wLXEsdrmFk2qZ User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (Windows NT 6.1; U; pl) Presto/2.5.24 Version/10.53,gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit