<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Live comment preview using&#160;Javascript</title>
	<atom:link href="http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/</link>
	<description>Sam Newman's blog</description>
	<pubDate>Fri, 08 Aug 2008 19:18:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-373</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Tue, 19 Apr 2005 13:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-373</guid>
		<description>I did indeed getting working for firefox et al, doing this:

function reloadPreviewDiv() { 
    var commentString = document.getElementById('comment').value;
    document.getElementById('commentpreview').innerHTML = textile(commentString);
}

The call to textile simply applies textile formatting conventions - if you want to allow HTML comments, just set the innerHTML to commentString - if you want to strip HTML from the previews you'll have to dig out some Javascript to do the stripping for you.
</description>
		<content:encoded><![CDATA[<p>I did indeed getting working for firefox et al, doing this:</p>
<p>function reloadPreviewDiv() { </p>
<p>    var commentString = document.getElementById(&#8216;comment&#8217;).value;<br />
    document.getElementById(&#8216;commentpreview&#8217;).innerHTML = textile(commentString);<br />
}</p>
<p>The call to textile simply applies textile formatting conventions &#8211; if you want to allow <acronym title="HyperText Markup Language">HTML</acronym> comments, just set the innerHTML to commentString &#8211; if you want to strip <acronym title="HyperText Markup Language">HTML</acronym> from the previews you&#8217;ll have to dig out some Javascript to do the stripping for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dash</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-372</link>
		<dc:creator>Dash</dc:creator>
		<pubDate>Tue, 19 Apr 2005 11:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-372</guid>
		<description>here's one that does it in IE only,


function printpr()
{
var OLECMDID = 7;
/* OLECMDID values:
* 6 - print
* 7 - print preview
* 1 - open window
* 4 - Save As
*/
var PROMPT = 1; // 2 DONTPROMPTUSER
var WebBrowser = '';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
WebBrowser1.ExecWB(OLECMDID, PROMPT);
WebBrowser1.outerHTML = "";
}

P.S. if you know how to do this in other browsers like mozilla, please email me !!!

Cheers!
DASH</description>
		<content:encoded><![CDATA[<p>here&#8217;s one that does it in <acronym title="Internet Explorer">IE</acronym> only,</p>
<p>function printpr()<br />
{<br />
var OLECMDID = 7;<br />
/* OLECMDID values:</p>
<ul>
<li>6 &#8211; print</li>
<li>7 &#8211; print preview</li>
<li>1 &#8211; open window</li>
<li>4 &#8211; Save As
<p>*/<br />
var PROMPT = 1; // 2 DONTPROMPTUSER<br />
var WebBrowser = &#8216;&#8217;;<br />
document.body.insertAdjacentHTML(&#8216;beforeEnd&#8217;, WebBrowser);<br />
WebBrowser1.ExecWB(OLECMDID, PROMPT);<br />
WebBrowser1.outerHTML = &#8220;&#8221;;<br />
}</p>
<p>P.S. if you know how to do this in other browsers like mozilla, please email me !!!</p>
<p>Cheers!<br />
DASH</p>
</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-371</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Sat, 03 Jul 2004 10:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-371</guid>
		<description>I don't know myself, and think the exact behaviour might vary greatly between browsers, but "this article":http://www.intranetjournal.com/text/corner/hoque/config-1.shtml might be a good starting point - or else try your friend "google":http://www.google.com/search?q=javascript show print preview&#38;sourceid=firefox&#38;start=0&#38;start=0&#38;ie=utf-8&#38;oe=utf-8</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know myself, and think the exact behaviour might vary greatly between browsers, but <a href="http://www.intranetjournal.com/text/corner/hoque/config-1.shtml" >this article</a> might be a good starting point &#8211; or else try your friend <a href="http://www.google.com/search?q=javascript" >google</a> show print preview&#038;sourceid=firefox&#038;start=0&#038;start=0&#038;<acronym title="Internet Explorer">IE</acronym>=utf-8&#038;oe=utf-8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thenkathir</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-370</link>
		<dc:creator>thenkathir</dc:creator>
		<pubDate>Sat, 03 Jul 2004 08:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-370</guid>
		<description>Hi 

If i click print  button(user defined)than i want to open print preview

How to do that?

prviouslt i used this way...

&#60;script  javascript; function:printme(winows.print()}...


Private clicj_Print(){
Browsername.Navigate(Javascript:prinme,...)
}

This code im'tly print the data(what ever in the browser)

I want click the event than first open  print preview...

how do to that?</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>If i click print  button(user defined)than i want to open print preview</p>
<p>How to do that?</p>
<p>prviouslt i used this way&#8230;</p>
<p><script javascript; function:printme(winows.print()}...</p>
<p>Private clicj_Print(){<br />
Browsername.Navigate(Javascript:prinme,...)<br />
}</p>
<p>This code <acronym title="Instant Message">IM</acronym>&#8217;tly print the data(what ever in the browser)</p>
<p>I want click the event than first open  print preview&#8230;</p>
<p>how do to that?</p>
<p></script></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-369</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Fri, 02 Jul 2004 15:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-369</guid>
		<description>I'm not sure what you're after - you mean you want a Javascript method of invoking a print preview? For what purpose?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what you&#8217;re after &#8211; you mean you want a Javascript method of invoking a print preview? For what purpose?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thenkathir</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-368</link>
		<dc:creator>thenkathir</dc:creator>
		<pubDate>Fri, 02 Jul 2004 15:46:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-368</guid>
		<description>i want to enaple print preview in the javascript.

like.. windows.print()</description>
		<content:encoded><![CDATA[<p>i want to enaple print preview in the javascript.</p>
<p>like.. windows.print()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Wilson</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-367</link>
		<dc:creator>Phil Wilson</dc:creator>
		<pubDate>Tue, 18 May 2004 17:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-367</guid>
		<description>Oh. Wow.

"Awesome":http://www.google.com</description>
		<content:encoded><![CDATA[<p>Oh. Wow.</p>
<p><a href="http://www.google.com" >Awesome</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-366</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Tue, 18 May 2004 12:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-366</guid>
		<description>Anyway, got a live preview working locally using Stuart's code, so I'll look at implementing it here soon...</description>
		<content:encoded><![CDATA[<p>Anyway, got a live preview working locally using Stuart&#8217;s code, so I&#8217;ll look at implementing it here soon&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Wilson</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-365</link>
		<dc:creator>Phil Wilson</dc:creator>
		<pubDate>Tue, 18 May 2004 12:06:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-365</guid>
		<description>Damned by faint praise - my gift, my curse. :)</description>
		<content:encoded><![CDATA[<p>Damned by faint praise &#8211; my gift, my curse. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/05/14/live-comment-preview-using-javascript/#comment-364</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Tue, 18 May 2004 11:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/#comment-364</guid>
		<description>You sir, are a person of godlike qualities! At least when it comes to coming up with useful links.</description>
		<content:encoded><![CDATA[<p>You sir, are a person of godlike qualities! At least when it comes to coming up with useful links.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
