<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>なんでもやりたい: JavaScript</title>
	<link rel="alternate" type="text/html" href="http://deko.junka.net/javascript/" />
	<link rel="self" type="application/atom+xml" href="http://deko.junka.net/javascript/atom.xml" />
    <id>tag:deko.junka.net,2008-11-26://5</id>
    <updated>2009-03-24T01:47:53Z</updated>
    <subtitle>order.push(&quot;deko&quot;);</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Pro 4.21-ja</generator>

<entry>
    <title>ACPrintManagerを修正</title>
    <link rel="alternate" type="text/html" href="http://deko.junka.net/2009/03/acprintmanager.html" />
    <id>tag:deko.junka.net,2009://5.2956</id>

    <published>2009-03-24T01:33:31Z</published>
    <updated>2009-03-24T01:47:53Z</updated>

    <summary>ACPrintManagerを使ってFlashを含むコンテンツをプリント可能にす...</summary>
    <author>
        <name>順加</name>
        <uri>http://www.junka.net/</uri>
    </author>
    
        <category term="JavaScript" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="メモ" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="acprintmanager" label="ACPrintManager" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="flash" label="Flash" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="javascript" label="JavaScript" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="ja" xml:base="http://deko.junka.net/">
        <![CDATA[<p><a class="ex-ref" href="http://www.anychart.com/blog/projects/acprintmanager/">ACPrintManager</a>を使ってFlashを含むコンテンツをプリント可能にするにあたって、いくつか問題点が出てきたんです。（<a href="http://deko.junka.net/2009/03/2.html">前回記事</a>）</p>
<p>Flashコンテンツって大抵は動的コンテンツじゃないですか。</p>
<p>例えば画面遷移した時とか、プリント用の画像を生成するメソッドを呼ぶ度に、プリント用画像が上書きされずに、どんどん下へ追加されていっちゃうんですよ。ずらーっと。</p>
<p>そこでACPrintManager.jsを修正。<br />
jsが画像を受け取って表示する辺りのコードをちょいと弄ります。（103行目辺り）</p>
<p class="code"></p><pre>//step #5: get image
if(parent.imgObj){
	parent.imgObj.src=null;
}
（中略...画像を表示したり処理するコード）
parent.imgObj = img;</pre>
<p>色々試したんだけどこうするのが一番確実だった。<br />
ていうかJavaScriptの勉強になった。asの兄弟だけあって理解しやすい。jsも楽しいなあー</p>]]>
        
    </content>
</entry>

</feed>
