🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Drukowanie zawartości nowego okna

#50082
From: Czesiu
Date: Fri, 21 May 2010 19:16
11 lines
1576 bytes
Witam!
Mam taki kod:
function drukuj(){
content = document.getElementById("list").innerHTML;
printwin =
window.open('','Print','toolbar=no,status=no,width=300,height=200');
printwin.document.write(content);								printwin.window.print();}

W ie dostaje komunikat że obiekt niwe obsługuje tej metody ,a opera
nic nie robi i błędów w konsoli nie ma!
Co z tym zrobić? A może jest sposób na drukowanie wybranego elementu?
Technical Details
Message-ID: <3a6c7fda-8ab1-4cfa-97bd-34117b2ce51f@q33g2000vbt.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!news2.arglkargh.de!news.osn.de!diablo1.news.osn.de!ecngs!feeder.ecngs.de!feeder.news-service.com!postnews.google.com!q33g2000vbt.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!news2.arglkargh.de!news.osn.de!diablo1.news.osn.de!ecngs!feeder.ecngs.de!feeder.news-service.com!postnews.google.com!q33g2000vbt.googlegroups.com!not-for-mail
From: Czesiu <tonyhouk@o2.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Drukowanie zawartości nowego okna
Date: Fri, 21 May 2010 12:16:18 -0700 (PDT)
Organization: http://groups.google.com
Lines: 12
Message-ID: <3a6c7fda-8ab1-4cfa-97bd-34117b2ce51f@q33g2000vbt.googlegroups.com>
NNTP-Posting-Host: 83.25.45.118
Mime-Version: 1.0
X-Trace: posting.google.com 1274469378 5478 127.0.0.1 (21 May 2010 19:16:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 21 May 2010 19:16:18 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q33g2000vbt.googlegroups.com; posting-host=83.25.45.118;  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