<?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 Preview and Smilies</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Jan 2012 01:21:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Oscar</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9160</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9160</guid>
		<description>Well, it&#039;s my mistake anyway Doc. I should have done my homework! Your code works fine on every other browser extant, except, OF COURSE, MSIE 5.2.2 for MacOSX. I should have checked. I still don&#039;t understand what the actual problem is, but I would leave the code your way until/unless I find a more universal coding that works (which is what I thought I WAS doing).

As for those scratchings: first, as you know, we are searching the text for the first expression and replacing it with the second. The first expression sits between these //

And &quot;&#092;r&quot; means &quot;carriage return&quot; and &quot;&#092;n&quot; means linefeed.

The &quot;g&quot; flag sits outside the double slashes and specifies that pattern matching should be global (all instances in the string).

The brackets [] are array notation, and they specify that we must match any one of the elements in the array - in this case, either a newline (linefeed) or a carriage return. Now, why so different on different browsers? Go figure - but what fun would it be if everything just worked right!?!?!? :-)
</description>
		<content:encoded><![CDATA[<p>Well, it&#039;s my mistake anyway Doc. I should have done my homework! Your code works fine on every other browser extant, except, OF COURSE, MSIE 5.2.2 for MacOSX. I should have checked. I still don&#039;t understand what the actual problem is, but I would leave the code your way until/unless I find a more universal coding that works (which is what I thought I WAS doing).</p>
<p>As for those scratchings: first, as you know, we are searching the text for the first expression and replacing it with the second. The first expression sits between these //</p>
<p>And &#034;&#92;r&#034; means &#034;carriage return&#034; and &#034;&#92;n&#034; means linefeed.</p>
<p>The &#034;g&#034; flag sits outside the double slashes and specifies that pattern matching should be global (all instances in the string).</p>
<p>The brackets [] are array notation, and they specify that we must match any one of the elements in the array &#8211; in this case, either a newline (linefeed) or a carriage return. Now, why so different on different browsers? Go figure &#8211; but what fun would it be if everything just worked right!?!?!? <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9159</link>
		<dc:creator>Doc</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9159</guid>
		<description>FYI, That works too, but it double spaces on my Live preview whereas the other single space.
What exactly is the difference as I am not completely familiar with /[&#092;r&#092;n]/g etc.</description>
		<content:encoded><![CDATA[<p>FYI, That works too, but it double spaces on my Live preview whereas the other single space.<br />
What exactly is the difference as I am not completely familiar with /[&#92;r&#92;n]/g etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9158</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9158</guid>
		<description>Actually, I told Adam that that looked good, in his comment over at my place, but I&#039;d spoken too soon. It doesn&#039;t work (but it does &lt;em&gt;look&lt;/em&gt; good). Anyway, THIS does work:

NewText = NewText.replace( /[&#092;r&#092;n]/g,&quot;&lt;br /&gt;&quot;);</description>
		<content:encoded><![CDATA[<p>Actually, I told Adam that that looked good, in his comment over at my place, but I&#039;d spoken too soon. It doesn&#039;t work (but it does <em>look</em> good). Anyway, THIS does work:</p>
<p>NewText = NewText.replace( /[&#92;r&#92;n]/g,&quot;&lt;br /&gt;&quot;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doc</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9157</link>
		<dc:creator>Doc</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9157</guid>
		<description>I picked this up of Oscar from above&#039;s comments and thought you might want to incorporate it into the Live preiview script

This converts Line breaks into BR/ tags so the breaks display properly.  Just add it to the ReloadTextDiv() function.
&lt;b&gt;NewText = NewText.replace(/&#092;n/g,&quot;&lt;br /&gt;&quot;); &lt;/b&gt;

Now If we can just figure out P tag interpretation.</description>
		<content:encoded><![CDATA[<p>I picked this up of Oscar from above&#039;s comments and thought you might want to incorporate it into the Live preiview script</p>
<p>This converts Line breaks into BR/ tags so the breaks display properly.  Just add it to the ReloadTextDiv() function.<br />
<b>NewText = NewText.replace(/&#92;n/g,&#034;&lt;br /&gt;&#034;); </b></p>
<p>Now If we can just figure out P tag interpretation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oscar</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9156</link>
		<dc:creator>Oscar</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9156</guid>
		<description>It works fine on MacOS X anyway, since that&#039;s what I&#039;m on almost all the time (except this very second).

Nothing new in the hack, so I don&#039;t know what the old problem was, unless MacOS9 with an old, old browser?

The use of .innerHTML is not always friendly, as you know ...</description>
		<content:encoded><![CDATA[<p>It works fine on MacOS X anyway, since that&#039;s what I&#039;m on almost all the time (except this very second).</p>
<p>Nothing new in the hack, so I don&#039;t know what the old problem was, unless MacOS9 with an old, old browser?</p>
<p>The use of .innerHTML is not always friendly, as you know &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9155</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9155</guid>
		<description>I just was on &lt;a href=&quot;http://www.seadoc.net/&quot; target=&quot;_blank&quot;&gt;seadoc.net&lt;/a&gt; - and he has the live preview thing running... On a mac right now, and it seems to be okay... so either when I implemented it (way long ago - the original version), I did it wrong, or this new version works better on a mac... :)</description>
		<content:encoded><![CDATA[<p>I just was on <a href="http://www.seadoc.net/" target="_blank">seadoc.net</a> &#8211; and he has the live preview thing running&#8230; On a mac right now, and it seems to be okay&#8230; so either when I implemented it (way long ago &#8211; the original version), I did it wrong, or this new version works better on a mac&#8230; <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/comment-page-1/#comment-9154</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/02/23/live-preview-and-smilies/#comment-9154</guid>
		<description>Something to be aware of: I actually took the &quot;live preview&quot; off my site because I realized that it so completely choked on the Mac. (and since I&#039;m mostly on a mac at work, I couldn&#039;t stand leaving comments when I was there... so I removed it).

Admitedly - I didn&#039;t try the script posted on the MT boards - but if/when implementing the script - if you have Mac users, and you don&#039;t want them to go insane - you&#039;ll want to have them get back to you on how it&#039;s working.</description>
		<content:encoded><![CDATA[<p>Something to be aware of: I actually took the &#034;live preview&#034; off my site because I realized that it so completely choked on the Mac. (and since I&#039;m mostly on a mac at work, I couldn&#039;t stand leaving comments when I was there&#8230; so I removed it).</p>
<p>Admitedly &#8211; I didn&#039;t try the script posted on the MT boards &#8211; but if/when implementing the script &#8211; if you have Mac users, and you don&#039;t want them to go insane &#8211; you&#039;ll want to have them get back to you on how it&#039;s working.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

