<?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: JavaScript Tip: Writing Dynamic Content</title>
	<atom:link href="http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/</link>
	<description>Insights on the IT world by Michi Kono</description>
	<lastBuildDate>Wed, 28 Jul 2010 00:04:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Michi</title>
		<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/#comment-8966</link>
		<dc:creator>Michi</dc:creator>
		<pubDate>Fri, 07 Sep 2007 15:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://michikono.com/blog/2006/08/16/javascript-tip-writing-dynamic-content/#comment-8966</guid>
		<description>Simply call the function with parameters. i don&#039;t understand... myfunction(a, b) would work.</description>
		<content:encoded><![CDATA[<p>Simply call the function with parameters. i don&#8217;t understand&#8230; myfunction(a, b) would work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nagesh</title>
		<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/#comment-8958</link>
		<dc:creator>Nagesh</dc:creator>
		<pubDate>Fri, 07 Sep 2007 10:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://michikono.com/blog/2006/08/16/javascript-tip-writing-dynamic-content/#comment-8958</guid>
		<description>I got your idea. But how to use it, when the function has parameters? Please explain me, as i am trying it out for a long time.</description>
		<content:encoded><![CDATA[<p>I got your idea. But how to use it, when the function has parameters? Please explain me, as i am trying it out for a long time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damon</title>
		<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/#comment-427</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Wed, 31 Jan 2007 13:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://michikono.com/blog/2006/08/16/javascript-tip-writing-dynamic-content/#comment-427</guid>
		<description>Michi,

Thanks for the information on this page.  I have spent 6 days (yep I&#039;m not very good!) trying to work my way through these issues by using such resources as your site.  Unfortunately, most were of little help (more of a hindrance!), but yours was clear, non-geeky and best of all worked!  
Before reading the above I though I only needed to know the correct way of eval&#039;ing my script (the SCRIPT tags were the problem!!) but thanks to this I have also sorted out the function scoping issues before I even knew they were a problem.  Cheers.</description>
		<content:encoded><![CDATA[<p>Michi,</p>
<p>Thanks for the information on this page.  I have spent 6 days (yep I&#8217;m not very good!) trying to work my way through these issues by using such resources as your site.  Unfortunately, most were of little help (more of a hindrance!), but yours was clear, non-geeky and best of all worked!<br />
Before reading the above I though I only needed to know the correct way of eval&#8217;ing my script (the SCRIPT tags were the problem!!) but thanks to this I have also sorted out the function scoping issues before I even knew they were a problem.  Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michi</title>
		<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/#comment-85</link>
		<dc:creator>Michi</dc:creator>
		<pubDate>Sun, 12 Nov 2006 08:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://michikono.com/blog/2006/08/16/javascript-tip-writing-dynamic-content/#comment-85</guid>
		<description>Mike: It is possible my JS is not 100% perfect. I wrote the code off of the top of my head and only tested it minimally. =) But the overall concept will work in most browsers, including IE. Also, make sure you are not copy-pasting those slanted quotes around my code... JS will not like those.

Jen: Please note that browsers WILL SEE the JavaScript. The problem is that they will not execute the text. In other words, your JS code is treated like plain text. That said, having one div read another will work. Make sure the code to read the JS is working. Finally, the JS text must be pushed through an eval() call. In other words: eval(getTheDivContents()); Note that the eval function wants JavaScript, not HTML so do not include in script tags.</description>
		<content:encoded><![CDATA[<p>Mike: It is possible my JS is not 100% perfect. I wrote the code off of the top of my head and only tested it minimally. =) But the overall concept will work in most browsers, including IE. Also, make sure you are not copy-pasting those slanted quotes around my code&#8230; JS will not like those.</p>
<p>Jen: Please note that browsers WILL SEE the JavaScript. The problem is that they will not execute the text. In other words, your JS code is treated like plain text. That said, having one div read another will work. Make sure the code to read the JS is working. Finally, the JS text must be pushed through an eval() call. In other words: eval(getTheDivContents()); Note that the eval function wants JavaScript, not HTML so do not include in script tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/#comment-78</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Wed, 08 Nov 2006 14:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://michikono.com/blog/2006/08/16/javascript-tip-writing-dynamic-content/#comment-78</guid>
		<description>You said:
&quot;Lastly, any JavaScript you import into your document will not be executed. This is part of JavaScript’s security model. You must run an “eval()” on the contents.&quot;

This is where I&#039;m having a problem.  I need to load content (an HTML page) into a &quot;dynamic div&quot; using innerHTML.  From the page that loads, I want to execute another function to load content FROM that page to ANOTHER &quot;dynamic div&quot; ... but since javascript won&#039;t be seen from within the imported document, how could I go about this????

ANY HELP IS GREATLY APPRECIATED!  THANKS!!!

~Jennifer</description>
		<content:encoded><![CDATA[<p>You said:<br />
&#8220;Lastly, any JavaScript you import into your document will not be executed. This is part of JavaScript’s security model. You must run an “eval()” on the contents.&#8221;</p>
<p>This is where I&#8217;m having a problem.  I need to load content (an HTML page) into a &#8220;dynamic div&#8221; using innerHTML.  From the page that loads, I want to execute another function to load content FROM that page to ANOTHER &#8220;dynamic div&#8221; &#8230; but since javascript won&#8217;t be seen from within the imported document, how could I go about this????</p>
<p>ANY HELP IS GREATLY APPRECIATED!  THANKS!!!</p>
<p>~Jennifer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://www.michiknows.com/2006/08/16/javascript-tip-writing-dynamic-content/#comment-63</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Wed, 25 Oct 2006 16:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://michikono.com/blog/2006/08/16/javascript-tip-writing-dynamic-content/#comment-63</guid>
		<description>not working in IE 6, do you have any idea on this ?</description>
		<content:encoded><![CDATA[<p>not working in IE 6, do you have any idea on this ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
