<?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>Emposha &#187; Javascript</title>
	<atom:link href="http://www.emposha.com/tag/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://www.emposha.com</link>
	<description>Just another stupid wordpress blog ;)</description>
	<lastBuildDate>Tue, 25 May 2010 06:38:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Most short method to find out if your browser is IE</title>
		<link>http://www.emposha.com/javascript/most-short-method-to-find-out-if-your-browser-is-ie.html</link>
		<comments>http://www.emposha.com/javascript/most-short-method-to-find-out-if-your-browser-is-ie.html#comments</comments>
		<pubDate>Sat, 09 Jan 2010 18:41:40 +0000</pubDate>
		<dc:creator>emposha</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://www.emposha.com/?p=370</guid>
		<description><![CDATA[Only 5 byte and you can find out if it`s IE]]></description>
			<content:encoded><![CDATA[<p>Only 5 byte and you can find out if it`s IE</p>
<p>Example:</p>
<p>if(-[1,]){<br />
alert(&#8220;Not IE!&#8221;);<br />
}</p>
<p>Source: <a href="http://habrahabr.ru/blogs/javascript/80333">http://habrahabr.ru/blogs/javascript/80333</a> it`s in russian but still you can use google translate</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emposha.com/javascript/most-short-method-to-find-out-if-your-browser-is-ie.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MIDI object cause to IE6 crash</title>
		<link>http://www.emposha.com/uncategorized/midi-object-cause-to-ie6-crash.html</link>
		<comments>http://www.emposha.com/uncategorized/midi-object-cause-to-ie6-crash.html#comments</comments>
		<pubDate>Tue, 14 Apr 2009 08:38:42 +0000</pubDate>
		<dc:creator>emposha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie6 crash]]></category>
		<category><![CDATA[ie6 error]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[midi]]></category>

		<guid isPermaLink="false">http://www.emposha.com/?p=241</guid>
		<description><![CDATA[In one of project I use MIDI object to play midi files.  Everything work perfect in IE7, until I test it on IE6. After couple of seconds that I stop midi IE6 crash with some strange error.]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>In one of project I use MIDI object to play midi files.  Everything work perfect in IE7, until I test it on IE6. After couple of seconds that I stop midi IE6 crash with some strange error.</p>
<p style="text-align: center; "><a href="http://www.emposha.com/wp-content/uploads/2009/04/ole1.jpg"><img class="aligncenter size-medium wp-image-244" title="ole1" src="http://www.emposha.com/wp-content/uploads/2009/04/ole1-300x77.jpg" alt="ole1" width="300" height="77" /></a></p>
<p>So after my research I found that when you try to delete  MIDI object after that you stop him by default midi control IE6 crash. By the way sometimes it takes a while untils this error will apear and it`s probably depend on ie6 version.</p>
<p>Tested with: audio/x-midi, audio/midi withoud classid with same result</p>
<p>IE6 version:  6.0.2900.2180.xpsp_sp2_gdr.070227-2254 </p>
<p>Code:</p>
<blockquote><p><code><span style="color: black;"><span style="color: #0000ff;">&lt;!</span><span style="color: #800000;">DOCTYPE</span> <span style="color: #ff0000;">html</span> <span style="color: #ff0000;">PUBLIC</span> <span style="color: #0000ff;">"-//W3C//DTD HTML 4.01//EN"</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span><br />
 <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span><br />
  <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span>Midi/Object Test Page<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span><br />
  <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
  <span style="color: #0000ff;">function</span> stopMusic()<br />
  {<br />
    <span style="color: #0000ff;">var</span> music = <span style="color: #0000ff;">document</span>.getElementById(<span style="color: #a31515;">'testme'</span>);<br />
    music.stop();<br />
    <span style="color: #0000ff;">document</span>.getElementById(<span style="color: #a31515;">'testme2'</span>).innerHTML = <span style="color: #a31515;">"123"</span>;<br />
  }<br />
  <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
 <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span><br />
 <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="testme2"</span><span style="color: #0000ff;">&gt;</span><br />
    <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">object</span> <span style="color: #ff0000;">classid</span><span style="color: #0000ff;">="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="testme"</span><span style="color: #0000ff;">&gt;</span><br />
        <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">param</span> <span style="color: #ff0000;">name</span><span style="color: #0000ff;">="autostart"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="true"</span><span style="color: #0000ff;">&gt;</span><br />
        <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">param</span> <span style="color: #ff0000;">name</span><span style="color: #0000ff;">="FileName"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="1730199.mid"</span><span style="color: #0000ff;">&gt;</span><br />
    <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">object</span><span style="color: #0000ff;">&gt;</span><br />
    <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span><br />
  <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="button"</span> <span style="color: #ff0000;">onclick</span><span style="color: #0000ff;">="stopMusic()"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="test me"</span> <span style="color: #0000ff;">/&gt;</span><br />
 <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></span><br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.emposha.com/uncategorized/midi-object-cause-to-ie6-crash.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-Domain Javascript execution library</title>
		<link>http://www.emposha.com/javascript/cross-domain-javascript-execution-library.html</link>
		<comments>http://www.emposha.com/javascript/cross-domain-javascript-execution-library.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 10:56:36 +0000</pubDate>
		<dc:creator>emposha</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[cross-domain]]></category>
		<category><![CDATA[crossdomain]]></category>

		<guid isPermaLink="false">http://www.emposha.com/?p=165</guid>
		<description><![CDATA[In one of the projects I am faced with problem of the java scripts execution on different domains.
After advice from one of team leaders, the solution was found and it was a quite simple.]]></description>
			<content:encoded><![CDATA[<p>In one of the projects I am faced with problem of the java scripts execution on different domains.<br />
After advice from one of team leaders, the solution was found and it was a quite simple.<br />
For example, we have A domain with frame that point to domain B which is to call javascript function in domain A.<br />
If you simply call a window.parent.funcame you will get exception. So what can we do ?<br />
It is very simple &#8211; in domain B we create frame to  domain A and then we try to execute a function on domain  A as window.parent.parent.fucname and how we can see function is executed succesufully.</p>
<p>So this script does this operation automatically without requiring knowledge of java script.</p>
<p><strong>Credits: </strong>Nir Levy</p>
<p><strong>Usage:</strong></p>
<p>Domain A:</p>
<p><em>Main file:</em></p>
<blockquote><p><code><span style=" color: black; "><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;&lt;</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span>domain_a<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">function</span> showmelove(text)<br />
{<br />
alert(text);<br />
}<br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
... some content here ...<br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">iframe</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="hpel"</span> <span style="color: #ff0000;">height</span><span style="color: #0000ff;">="100"</span> <span style="color: #ff0000;">frameborder</span><span style="color: #0000ff;">="0"</span> <span style="color: #ff0000;">width</span><span style="color: #0000ff;">="100%"</span> <span style="color: #ff0000;">scrolling</span><span style="color: #0000ff;">="0"</span> <span style="color: #ff0000;">title</span><span style="color: #0000ff;">=""</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="http://domain_b/iframe.html"</span> <span style="color: #ff0000;">style</span><span style="color: #0000ff;">="height: 194px;"</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">iframe</span><span style="color: #0000ff;">&gt;</span><br />
... some content here ...<br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span> </span></code></p>
<p><code> </code><code><br />
<span style="color: gray; font-size: xx-small;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="color: gray; font-size: xx-small;">Source Code Highlighter</span></a>.</span></code></p></blockquote>
<p><em>Exec file:</em></p>
<blockquote><p><code><span style=" color: black; "><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="crossdomain_server.js"</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
&lt;script type=<span style="color: #a31515;">"text/javascript"</span>&gt;<br />
crossdomain.server().init();<br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></span> </code></p>
<p><code> </code><code><span style="color: gray; font-size: xx-small;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="color: gray; font-size: xx-small;">Source Code Highlighter</span></a>.</span></code></p></blockquote>
<p>Domain B:</p>
<blockquote><p><code><span style=" color: black; "><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="crossdomain_client.js"</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span> <span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
&lt;script&gt;<br />
crossdomain.client(<span style="color: #a31515;">"frame"</span>).init(<span style="color: #a31515;">"http://www.domain_a/iframe.html"</span>);</span></code></p>
<p><code> </code><code> <span style="color: #0000ff;">function</span> sendText() {<br />
crossdomain.client(<span style="color: #a31515;">"frame"</span>).callfunc(<span style="color: #a31515;">"showmelove"</span>,{mesasge: <span style="color: #a31515;">"'hello world'"</span>});<br />
}<br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="allBodyDiv"</span><span style="color: #0000ff;">&gt;</span><br />
some content goes here...<br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="button"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="send"</span> <span style="color: #ff0000;">onclick</span><span style="color: #0000ff;">="sendText()"</span> <span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span> </code></p>
<p><code> </code><code><span style="color: gray; font-size: xx-small;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="color: gray; font-size: xx-small;">Source Code Highlighter</span></a>.</span></code></p></blockquote>
<p><strong>Download</strong><strong>: <span style="font-weight: normal;"><a href="http://www.emposha.com/upload/crossdomain.zip" target="_blank">CrossDomain</a></span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.emposha.com/javascript/cross-domain-javascript-execution-library.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Strange Jquery 1.3 behavior</title>
		<link>http://www.emposha.com/javascript/strange-jquery-13-behavior.html</link>
		<comments>http://www.emposha.com/javascript/strange-jquery-13-behavior.html#comments</comments>
		<pubDate>Thu, 15 Jan 2009 17:16:33 +0000</pubDate>
		<dc:creator>emposha</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[jquery 1.3]]></category>

		<guid isPermaLink="false">http://www.emposha.com/?p=134</guid>
		<description><![CDATA[Today I worked with two elements with same ids but in different forms, and found strange jquery selector engine behavior. Actually I can undrestand that, because by w3c you cant place two elements with same ids on same page.]]></description>
			<content:encoded><![CDATA[<p>Today I worked with two elements with same ids but in different forms, and found strange jquery selector engine behavior. Actually I can undrestand that, because by w3c you cant place two elements with same ids on same page.</p>
<p><strong>Description</strong>: Two froms with element with same id in both of them, trying to use jquery selector to choose one of them like this $(&#8220;#formid #elemid&#8221;). Result will be null.</p>
<p><strong>Example</strong>:</p>
<p>HTML:</p>
<blockquote><p><code><span style="font-family: Courier New; color: black; font-size: x-small;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">form</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="form1"</span> <span style="color: #ff0000;">method</span><span style="color: #0000ff;">="post"</span> <span style="color: #ff0000;">action</span><span style="color: #0000ff;">="/"</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="inputtext"</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="text1"</span> <span style="color: #ff0000;">name</span><span style="color: #0000ff;">="text1"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">=""</span><span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="inputtext"</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="text2"</span> <span style="color: #ff0000;">name</span><span style="color: #0000ff;">="text2"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">=""</span><span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="button"</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="btn1"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="press me"</span><span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">form</span><span style="color: #0000ff;">&gt;</span></span></code></p>
<p><span style="font-family: Courier New; color: black; font-size: x-small;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">form</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;form2&#8243;</span> <span style="color: #ff0000;">method</span><span style="color: #0000ff;">=&#8221;post&#8221;</span> <span style="color: #ff0000;">action</span><span style="color: #0000ff;">=&#8221;/&#8221;</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">=&#8221;text&#8221;</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">=&#8221;inputtext&#8221;</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;text1&#8243;</span> <span style="color: #ff0000;">name</span><span style="color: #0000ff;">=&#8221;text1&#8243;</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">=&#8221;"</span><span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">=&#8221;text&#8221;</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">=&#8221;inputtext&#8221;</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;text2&#8243;</span> <span style="color: #ff0000;">name</span><span style="color: #0000ff;">=&#8221;text3&#8243;</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">=&#8221;"</span><span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">=&#8221;text&#8221;</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">=&#8221;button&#8221;</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">=&#8221;btn2&#8243;</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">=&#8221;press me2&#8243;</span><span style="color: #0000ff;">/&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">form</span><span style="color: #0000ff;">&gt;</span><br />
</span><br />
<span style="color: gray; font-size: xx-small;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="color: gray; font-size: xx-small;">Source Code Highlighter</span></a>.</span></p></blockquote>
<p>Javascript:</p>
<blockquote><p><code><span style="font-family: Courier New; color: black; font-size: x-small;">$(<span style="color: #a31515;">'#btn1'</span>).click(<span style="color: #0000ff;">function</span>() {<br />
<span style="color: #0000ff;">if</span> (!$(<span style="color: #a31515;">'#form1 #text1'</span>).val()) {<br />
$(<span style="color: #a31515;">'#form1 #text1'</span>).css(<span style="color: #a31515;">'border'</span>,<span style="color: #a31515;">'1px solid red'</span>);<br />
}<br />
<span style="color: #0000ff;">if</span> (!$(<span style="color: #a31515;">'#form1 #text2'</span>).val()) {<br />
$(<span style="color: #a31515;">'#form1 #text2'</span>).css(<span style="color: #a31515;">'border'</span>,<span style="color: #a31515;">'1px solid red'</span>);<br />
}<br />
});</span></code></p>
<p><span style="font-family: Courier New; color: black; font-size: x-small;">$(<span style="color: #a31515;">&#8216;#btn2&#8242;</span>).click(<span style="color: #0000ff;">function</span>() {<br />
<span style="color: #0000ff;">if</span> (!$(<span style="color: #a31515;">&#8216;#form2 #text1&#8242;</span>).val()) {<br />
$(<span style="color: #a31515;">&#8216;#form2 #text1&#8242;</span>).css(<span style="color: #a31515;">&#8216;border&#8217;</span>,<span style="color: #a31515;">&#8216;1px solid red&#8217;</span>);<br />
}<br />
<span style="color: #0000ff;">if</span> (!$(<span style="color: #a31515;">&#8216;#form2 #text2&#8242;</span>).val()) {<br />
$(<span style="color: #a31515;">&#8216;#form2 #text4&#8242;</span>).css(<span style="color: #a31515;">&#8216;border&#8217;</span>,<span style="color: #a31515;">&#8216;1px solid red&#8217;</span>);<br />
}<br />
});</span></p>
<p><span style="color: gray; font-size: xx-small;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="color: gray; font-size: xx-small;">Source Code Highlighter</span></a>.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.emposha.com/javascript/strange-jquery-13-behavior.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>fcbkListSelection v 1.1 &#8211; like facebook friends selector</title>
		<link>http://www.emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html</link>
		<comments>http://www.emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html#comments</comments>
		<pubDate>Wed, 19 Nov 2008 20:12:48 +0000</pubDate>
		<dc:creator>emposha</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[fancy]]></category>
		<category><![CDATA[multiselect]]></category>

		<guid isPermaLink="false">http://www.emposha.com/?p=109</guid>
		<description><![CDATA[fcbkListSelection  &#8211; fancy item selector (like facebook friends selector) with wide range of options.

If you have any comments or requests, please post them and I will try to include all the requested features in the upcoming release.
HowTo:
1) HTML stracture:
&#60;ul id="ulid"&#62;
&#60;li&#62;regular content &#60;input type="hidden" value="value" /&#62;&#60;/li&#62;
&#60;li&#62;preselected content &#60;input type="hidden" value="value" checked="checked" /&#62;&#60;/li&#62;
&#60;li&#62;regular content &#60;input type="hidden" [...]]]></description>
			<content:encoded><![CDATA[<p>fcbkListSelection  &#8211; fancy item selector (like facebook friends selector) with wide range of options.</p>
<p style="text-align: center;"><a href="http://www.emposha.com/wp-content/uploads/2008/11/fcbklist.png"><img class="alignnone size-medium wp-image-113" title="fcbklist" src="http://www.emposha.com/wp-content/uploads/2008/11/fcbklist-300x150.png" border="0" alt="" width="300" height="150" /></a></p>
<p>If you have any comments or requests, please post them and I will try to include all the requested features in the upcoming release.</p>
<p><strong>HowTo:</strong></p>
<p>1) HTML stracture:</p>
<blockquote><p><code><span style="color: black;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">ul</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="ulid"</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>regular content <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="hidden"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="value"</span> <span style="color: #0000ff;">/&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>preselected content <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="hidden"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="value"</span> <span style="color: #ff0000;">checked</span><span style="color: #0000ff;">="checked"</span> <span style="color: #0000ff;">/&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span>regular content <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">input</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="hidden"</span> <span style="color: #ff0000;">value</span><span style="color: #0000ff;">="value"</span> <span style="color: #0000ff;">/&gt;&lt;/</span><span style="color: #800000;">li</span><span style="color: #0000ff;">&gt;</span><br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">ul</span><span style="color: #0000ff;">&gt;</span></span></code></p>
<p><span style="font-size: xx-small; color: gray;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="font-size: xx-small; color: gray;">Source Code Highlighter</span></a>.</span></p></blockquote>
<p>2) Javascript:</p>
<blockquote><p><code><span style="color: black;"><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span> <span style="color: #ff0000;">language</span><span style="color: #0000ff;">="JavaScript"</span><span style="color: #0000ff;">&gt;</span><br />
$(<span style="color: #0000ff;">document</span>).ready(<span style="color: #0000ff;">function</span>() {<br />
<span style="color: #008000;">//id(ul id),width,height(element height),row(elements in row) </span><br />
$.fcbkListSelection(id[ul id],width,height[element height],row[elements <span style="color: #0000ff;">in</span> row]);<br />
});<br />
<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></span></code></p>
<p><span style="font-size: xx-small; color: gray;">* This source code was highlighted with <a href="http://virtser.net/blog/post/source-code-highlighter.aspx"><span style="font-size: xx-small; color: gray;">Source Code Highlighter</span></a>.</span></p></blockquote>
<p><strong>Changelog:</strong><br />
- 1.1: added preselected items<br />
- 1.0: project started</p>
<p><strong>Download</strong><strong>:</strong> <a href="http://github.com/emposha/fcbkListSelection/archives/master" target="_blank">Download fcbkListSelection<br />
</a></p>
<p><strong>Demo</strong><strong>:</strong> <a href="http://www.emposha.com/demo/fcbklistselection/" target="_blank">Demo fcbkListSelection</a></p>
<p><strong>Github:</strong> <a href="http://github.com/emposha/fcbkListSelection">http://github.com/emposha/fcbkListSelection</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.emposha.com/javascript/fcbklistselection-like-facebook-friends-selector.html/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>StoreIt &#8211; new way to share your images</title>
		<link>http://www.emposha.com/projects/storeit-new-way-to-share-your-images.html</link>
		<comments>http://www.emposha.com/projects/storeit-new-way-to-share-your-images.html#comments</comments>
		<pubDate>Sun, 21 Sep 2008 12:54:28 +0000</pubDate>
		<dc:creator>emposha</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[storeit]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://www.emposha.com/?p=49</guid>
		<description><![CDATA[Storeit &#8211; new way to share you images.
Status: Beta 
Language: Hebrew/English/Russian (Russian &#38; English in development)
Description: The easy way to share you image with your friends.
]]></description>
			<content:encoded><![CDATA[<p>Storeit &#8211; new way to <a title="share images" href="http://www.storeit.co.il" target="_blank">share you images</a>.</p>
<p>Status: Beta </p>
<p>Language: Hebrew/English/Russian (Russian &amp; English in development)</p>
<p>Description: The easy way to share you image with your friends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.emposha.com/projects/storeit-new-way-to-share-your-images.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
