<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Karlosp.net&#187; js</title>
	<atom:link href="http://www.karlosp.net/blog/tag/js/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karlosp.net/blog</link>
	<description>Malo mešano na žaru</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:25:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jQuery(string) create not valid DOM when string is html with newlines</title>
		<link>http://www.karlosp.net/blog/2009/01/12/jquerystring-create-not-valid-dom-when-string-is-html-with-newlines/</link>
		<comments>http://www.karlosp.net/blog/2009/01/12/jquerystring-create-not-valid-dom-when-string-is-html-with-newlines/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 08:18:29 +0000</pubDate>
		<dc:creator>karlosp</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.karlosp.net/blog/?p=501</guid>
		<description><![CDATA[PLAIN TEXT JAVASCRIPT: function jquery_from_html&#40;data&#41; &#123; &#160; &#160; &#160; &#160; return $&#40;"&#60;div id='inner' /&#62;"&#41;.append&#40;data&#41;; &#125; &#160; or &#160; remove javascript and head overhead var htmlDOM = $&#40;"&#60;div id='inner' /&#62;"&#41;.append&#40;html.replace&#40;/&#60;script &#91;\s\S&#93;*\/script&#62;&#124;&#60;head &#91;\s\S&#93;*\/head&#62;/img,""&#41;&#41;;]]></description>
			<content:encoded><![CDATA[<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-2">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> jquery_from_html<span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"&lt;div id='inner' /&gt;"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">or</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">remove javascript and head overhead</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> htmlDOM = $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"&lt;div id='inner' /&gt;"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">append</span><span style="color: #66cc66;">&#40;</span>html.<span style="color: #006600;">replace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/&lt;script <span style="color: #66cc66;">&#91;</span>\s\S<span style="color: #66cc66;">&#93;</span>*\/script&gt;|&lt;head <span style="color: #66cc66;">&#91;</span>\s\S<span style="color: #66cc66;">&#93;</span>*\/head&gt;/img</span>,<span style="color: #3366CC;">""</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></head></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlosp.net/blog/2009/01/12/jquerystring-create-not-valid-dom-when-string-is-html-with-newlines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fly To Basket</title>
		<link>http://www.karlosp.net/blog/2007/11/05/fly-to-basket/</link>
		<comments>http://www.karlosp.net/blog/2007/11/05/fly-to-basket/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 12:31:28 +0000</pubDate>
		<dc:creator>karlosp</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Basket]]></category>
		<category><![CDATA[Fly]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[To]]></category>

		<guid isPermaLink="false">http://www.karlosp.net/blog/2007/11/05/fly-to-basket/</guid>
		<description><![CDATA[Fly To Basket]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.karlosp.net/blog/wp-content/uploads/2007/11/fly-to-basket.zip' title='Fly To Basket'>Fly To Basket</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.karlosp.net/blog/2007/11/05/fly-to-basket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

