<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Dynamic SCRIPT and STYLE elements in IE</title>
	<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/</link>
	<description>Stoyan's blog about (x)html, ajax, bookmarklets, browsers, css, firebug, javascript, json, mdb2, mysql, pear, performance, php, phpbb, tools, yslow, yui, writing, music,... life and everything.</description>
	<pubDate>Sat, 17 May 2008 04:04:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.1</generator>

	<item>
		<title>by: Mike</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-64138</link>
		<pubDate>Wed, 26 Mar 2008 13:52:24 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-64138</guid>
					<description>Your IE Style trick really helped me out, I was getting desperate after trying every other standard/non-standard way! Just a quick note, script.text is actually standard http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-81598695 and works in Safari &amp;#38; Opera as well. It is nice not to have to fork the code on IE for scripts at least...</description>
		<content:encoded><![CDATA[<p>Your IE Style trick really helped me out, I was getting desperate after trying every other standard/non-standard way! Just a quick note, script.text is actually standard <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-81598695' rel='nofollow'>http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-81598695</a> and works in Safari &amp; Opera as well. It is nice not to have to fork the code on IE for scripts at least&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: EnderÐS</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-63567</link>
		<pubDate>Mon, 21 Jan 2008 19:04:23 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-63567</guid>
					<description>Thanks a whole lot, this help me immensely. I dynamically insert a javascript function into web page using greasemonkey and have spent three days trying to port it to IE and Reify's Turnabout until I found this. Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks a whole lot, this help me immensely. I dynamically insert a javascript function into web page using greasemonkey and have spent three days trying to port it to IE and Reify's Turnabout until I found this. Thanks again.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Hacking at 0300 &#187; Blog Archive &#187; Ajax, Style elements and Safari</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-62633</link>
		<pubDate>Tue, 02 Oct 2007 06:42:35 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-62633</guid>
					<description>[...] I looked up a few ways to include a &amp;#60;style&amp;#62; element, but realized there&amp;#8217;s an easier way; I split the style into its own stylesheet and added a line to Javascript: $('head').append('&amp;#60;link type=&quot;text/css&quot; href=&quot;/css/kb.css&quot; rel=&quot;stylesheet&quot; &amp;#62;'); before the $('&amp;#60;div id=&quot;keyboard-holder&quot;&amp;#62;').insertAfter('#q').load('/inc/keyboard.html'); // load via Ajax and now the style loads dynamically and easily. Luckily, jQuery handles identifying and executing &amp;#60;script&amp;#62; elements in Ajax&amp;#8217;ed code, so I don&amp;#8217;t have to pull that out. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] I looked up a few ways to include a &lt;style&gt; element, but realized there&#8217;s an easier way; I split the style into its own stylesheet and added a line to Javascript: $('head').append('&lt;link type="text/css" href="/css/kb.css" rel="stylesheet" &gt;'); before the $('&lt;div id="keyboard-holder"&gt;').insertAfter('#q').load('/inc/keyboard.html'); // load via Ajax and now the style loads dynamically and easily. Luckily, jQuery handles identifying and executing &lt;script&gt; elements in Ajax&#8217;ed code, so I don&#8217;t have to pull that out. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Thamizharasu</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-62553</link>
		<pubDate>Thu, 27 Sep 2007 08:51:31 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-62553</guid>
					<description>I have a calendar field. which is having one text field and one calendar icon. with this i have a  attached with the image. Text field id and icon id is attached in the script variables.

So if you click the image, DHTML caledar box will be opened.

Now let me come to the real problem. i have plus icon. if i click the plus icon i need to add one more set of calendar. 

I am adding this new calendar through javascript. In Firefox this is working. but in IE this is not working. new calendar is coming but if i click the icon, DHTML calendar popup is not loaded.

can any one solve my problem.</description>
		<content:encoded><![CDATA[<p>I have a calendar field. which is having one text field and one calendar icon. with this i have a  attached with the image. Text field id and icon id is attached in the script variables.</p>
<p>So if you click the image, DHTML caledar box will be opened.</p>
<p>Now let me come to the real problem. i have plus icon. if i click the plus icon i need to add one more set of calendar. </p>
<p>I am adding this new calendar through javascript. In Firefox this is working. but in IE this is not working. new calendar is coming but if i click the icon, DHTML calendar popup is not loaded.</p>
<p>can any one solve my problem.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Taras</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-61976</link>
		<pubDate>Fri, 24 Aug 2007 07:33:42 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-61976</guid>
					<description>Unbelievable, this helped me so much :) Thank you guys!!!!!!!!</description>
		<content:encoded><![CDATA[<p>Unbelievable, this helped me so much <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thank you guys!!!!!!!!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Thamizh</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-61826</link>
		<pubDate>Sat, 04 Aug 2007 11:15:41 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-61826</guid>
					<description>hey ash,

For me IE is having some problem. how did you solve your problem. please share your idea with me

Thanks</description>
		<content:encoded><![CDATA[<p>hey ash,</p>
<p>For me IE is having some problem. how did you solve your problem. please share your idea with me</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: ash</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-54422</link>
		<pubDate>Sat, 28 Apr 2007 05:17:10 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-54422</guid>
					<description>Thank you so much!!
I've tried to solve this problem for so long, trying to find the way to dynamically add script and style tags during the ajax-application work.
Now it works in IE too.</description>
		<content:encoded><![CDATA[<p>Thank you so much!!<br />
I've tried to solve this problem for so long, trying to find the way to dynamically add script and style tags during the ajax-application work.<br />
Now it works in IE too.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: All in a days work&#8230;</title>
		<link>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-49083</link>
		<pubDate>Mon, 29 Jan 2007 01:16:52 +0000</pubDate>
		<guid>http://www.phpied.com/dynamic-script-and-style-elements-in-ie/#comment-49083</guid>
					<description>[...] Dynamic SCRIPT and STYLE elements in IE - Going conditional on the text attribute For IE you can use the text property instead of creating a text node. Creating a text node with the stylesheet body will work in Firefox. For IE, the type attribute, it&amp;#8217;s absolutely required here. So with a bit of object sniffing, we get a x-browser solut (tags: DOM JavaScript) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Dynamic SCRIPT and STYLE elements in IE - Going conditional on the text attribute For IE you can use the text property instead of creating a text node. Creating a text node with the stylesheet body will work in Firefox. For IE, the type attribute, it&#8217;s absolutely required here. So with a bit of object sniffing, we get a x-browser solut (tags: DOM JavaScript) [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
