<?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: How to find and replace text dynamically via JavaScript</title>
	<atom:link href="http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/</link>
	<description>Random Snippets of Code and Ideas for any Web Developer</description>
	<lastBuildDate>Sat, 17 Jul 2010 11:08:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: john</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-14093</link>
		<dc:creator>john</dc:creator>
		<pubDate>Wed, 14 Jul 2010 09:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-14093</guid>
		<description>hi, very nice script. i like this replacement-stuff with javascript, because you can use it for so much different things, its interesting.

i would like to know, is it possible to modifie this script, so that all numbers in a string are being subtracted by f.e. 1? so that 1 becomes 0, 2, becomes 1 and 255 becomes 244 (!!!) ?
I think this might be possible somehow with some regular expressions... but im still searching for a concrete solution...

greets, john</description>
		<content:encoded><![CDATA[<p>hi, very nice script. i like this replacement-stuff with javascript, because you can use it for so much different things, its interesting.</p>
<p>i would like to know, is it possible to modifie this script, so that all numbers in a string are being subtracted by f.e. 1? so that 1 becomes 0, 2, becomes 1 and 255 becomes 244 (!!!) ?<br />
I think this might be possible somehow with some regular expressions&#8230; but im still searching for a concrete solution&#8230;</p>
<p>greets, john</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: foxycoder</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-9472</link>
		<dc:creator>foxycoder</dc:creator>
		<pubDate>Fri, 18 Dec 2009 23:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-9472</guid>
		<description>Good solution, thanks for posting</description>
		<content:encoded><![CDATA[<p>Good solution, thanks for posting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pandaking</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-1284</link>
		<dc:creator>pandaking</dc:creator>
		<pubDate>Sun, 01 Feb 2009 02:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-1284</guid>
		<description>Hi, really great tutorial thanks! Was just what I was looking for.

I have been reading and re-reading, editing and re-editing again and again, and am a little stuck however.

What if I wanted to find and replace two fields? How about three?
I can&#039;t quite seem to work out what would change to allow me to do this. 

If perhaps you could help me with this I would be very grateful.

Cheers,
Panda</description>
		<content:encoded><![CDATA[<p>Hi, really great tutorial thanks! Was just what I was looking for.</p>
<p>I have been reading and re-reading, editing and re-editing again and again, and am a little stuck however.</p>
<p>What if I wanted to find and replace two fields? How about three?<br />
I can&#8217;t quite seem to work out what would change to allow me to do this. </p>
<p>If perhaps you could help me with this I would be very grateful.</p>
<p>Cheers,<br />
Panda</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-1104</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 06 Jan 2009 19:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-1104</guid>
		<description>Sorry about that but the example code seems to have been removed.

Here it is minus the brackets
Param name = &quot;OptimalDurationMultiplier value=&quot;&quot;

Colin</description>
		<content:encoded><![CDATA[<p>Sorry about that but the example code seems to have been removed.</p>
<p>Here it is minus the brackets<br />
Param name = &#8220;OptimalDurationMultiplier value=&#8221;"</p>
<p>Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-1103</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 06 Jan 2009 19:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-1103</guid>
		<description>Hi there

I hope you can help me with this problem.

I am creating a form which will output xml code for windows movie maker title files.

I am managing to get javascript to output the code to a text-area (with the ID set as codeoutput). What I need is to find lines which contain &quot;&quot; as shown in example below.



Once found I need javascript to delete all instances of these lines containing the empty quotes. Note: the strings of these lines can vary but will always contain empty quotes.

Can this be done? If so could you please post the code to do it.

Many thanks in advance and a Happy New Year to you.

Regards
Colin</description>
		<content:encoded><![CDATA[<p>Hi there</p>
<p>I hope you can help me with this problem.</p>
<p>I am creating a form which will output xml code for windows movie maker title files.</p>
<p>I am managing to get javascript to output the code to a text-area (with the ID set as codeoutput). What I need is to find lines which contain &#8220;&#8221; as shown in example below.</p>
<p>Once found I need javascript to delete all instances of these lines containing the empty quotes. Note: the strings of these lines can vary but will always contain empty quotes.</p>
<p>Can this be done? If so could you please post the code to do it.</p>
<p>Many thanks in advance and a Happy New Year to you.</p>
<p>Regards<br />
Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-591</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 23 Oct 2008 21:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-591</guid>
		<description>This is excellent, I only needed three lines of your code, and it works great!</description>
		<content:encoded><![CDATA[<p>This is excellent, I only needed three lines of your code, and it works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynden</title>
		<link>http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/comment-page-1/#comment-243</link>
		<dc:creator>Lynden</dc:creator>
		<pubDate>Sat, 23 Aug 2008 19:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.randomsnippets.com/2008/03/07/how-to-find-and-replace-text-dynamically-via-javascript/#comment-243</guid>
		<description>Hi, just wanted to say thanks for the demo on &#039;how to find and replace text dynamically&#039;. It solved a problem for me very quickly and after a couple of tweeks it serves as a nice little code generator/modifier for flv movie content.

Thanks again!</description>
		<content:encoded><![CDATA[<p>Hi, just wanted to say thanks for the demo on &#8216;how to find and replace text dynamically&#8217;. It solved a problem for me very quickly and after a couple of tweeks it serves as a nice little code generator/modifier for flv movie content.</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
