<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Live comment preview using Javascript</title>
	<atom:link href="http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/</link>
	<description>The blog of Sam Newman</description>
	<lastBuildDate>Tue, 17 Aug 2010 11:10:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2144</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-2144</guid>
		<description>I did indeed getting working for firefox et al, doing this:

function reloadPreviewDiv() {
    var commentString = document.getElementById(&#039;comment&#039;).value;
    document.getElementById(&#039;commentpreview&#039;).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&#039;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() {<br />
    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 HTML comments, just set the innerHTML to commentString &#8211; if you want to strip HTML 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/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2143</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-2143</guid>
		<description>here&#039;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 = &#039;&#039;;
document.body.insertAdjacentHTML(&#039;beforeEnd&#039;, WebBrowser);
WebBrowser1.ExecWB(OLECMDID, PROMPT);
WebBrowser1.outerHTML = &quot;&quot;;
}

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 IE only,</p>
<p>function printpr()<br />
{<br />
var OLECMDID = 7;<br />
/* OLECMDID values:<br />
* 6 &#8211; print<br />
* 7 &#8211; print preview<br />
* 1 &#8211; open window<br />
* 4 &#8211; Save As<br />
*/<br />
var PROMPT = 1; // 2 DONTPROMPTUSER<br />
var WebBrowser = &#8221;;<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>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2142</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-2142</guid>
		<description>I don&#039;t know myself, and think the exact behaviour might vary greatly between browsers, but &quot;this article&quot;:http://www.intranetjournal.com/text/corner/hoque/config-1.shtml might be a good starting point - or else try your friend &quot;google&quot;:http://www.google.com/search?q=javascript show print preview&amp;sourceid=firefox&amp;start=0&amp;start=0&amp;ie=utf-8&amp;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 &#8220;this article&#8221;:http://www.intranetjournal.com/text/corner/hoque/config-1.shtml might be a good starting point &#8211; or else try your friend &#8220;google&#8221;:http://www.google.com/search?q=javascript show print preview&amp;sourceid=firefox&amp;start=0&amp;start=0&amp;ie=utf-8&amp;oe=utf-8</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thenkathir</title>
		<link>http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2141</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-2141</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...

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


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

This code im&#039;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>&lt;script  javascript; function:printme(winows.print()}&#8230;</p>
<p>Private clicj_Print(){<br />
Browsername.Navigate(Javascript:prinme,&#8230;)<br />
}</p>
<p>This code im&#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>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2140</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-2140</guid>
		<description>I&#039;m not sure what you&#039;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/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2139</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-2139</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/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2138</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-2138</guid>
		<description>Oh. Wow.

&quot;Awesome&quot;:http://www.google.com</description>
		<content:encoded><![CDATA[<p>Oh. Wow.</p>
<p>&#8220;Awesome&#8221;:http://www.google.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2137</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-2137</guid>
		<description>Anyway, got a live preview working locally using Stuart&#039;s code, so I&#039;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/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2136</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-2136</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/2004/05/14/live-comment-preview-using-javascript/comment-page-1/#comment-2135</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-2135</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>
