<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>A River of Words - JavaScript</title>
    <link>http://blog.joeysmith.com/</link>
    <description>Drowning In Stupid</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Tue, 04 Nov 2008 20:19:11 GMT</pubDate>

    <image>
        <url>http://blog.joeysmith.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: A River of Words - JavaScript - Drowning In Stupid</title>
        <link>http://blog.joeysmith.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Bob Ippolito on JSON Hijacking</title>
    <link>http://blog.joeysmith.com/46.html</link>
            <category>JavaScript</category>
    
    <comments>http://blog.joeysmith.com/46.html#comments</comments>
    <wfw:comment>http://blog.joeysmith.com/wfwcomment.php?cid=46</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.joeysmith.com/rss.php?version=2.0&amp;type=comments&amp;cid=46</wfw:commentRss>
    

    <author>nospam@example.com (TML)</author>
    <content:encoded>
    	&lt;p&gt;The always brilliant author of the &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/bob.pythonmac.org/&#039;);&quot;  href=&quot;http://bob.pythonmac.org/&quot;&gt;`from &lt;i&gt;future&lt;/i&gt; import *` blog&lt;/a&gt; brings us an &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/bob.pythonmac.org/archives/2007/04/05/fortify-javascript-hijacking-fud/&#039;);&quot;  href=&quot;http://bob.pythonmac.org/archives/2007/04/05/fortify-javascript-hijacking-fud/&quot;&gt;article&lt;/a&gt; discussing a potential &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf&#039;);&quot;  href=&quot;http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf&quot;&gt;JavaScript Hijacking&lt;/a&gt; [pdf] scenario &amp;#8211; the simple answer is &amp;#8220;Don&amp;#8217;t send &lt;span class=&quot;caps&quot;&gt;JSON&lt;/span&gt; data as a list, send it as an object instead&amp;#8221;. That is, if you wanted to send:&lt;/p&gt;

&lt;pre style=&quot;font-size:9pt;&quot;&gt;
&lt;span style=&quot;color:#000000&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#bd8d8b&quot;&gt;&amp;quot;foo&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color:#bd8d8b&quot;&gt;&amp;quot;bar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;]&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;you can avoid the security hole by sending something like this instead:&lt;/p&gt;

&lt;pre style=&quot;font-size:9pt;&quot;&gt;
&lt;span style=&quot;color:#000000&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#bd8d8b&quot;&gt;&amp;quot;data&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;: [&lt;/span&gt;&lt;span style=&quot;color:#bd8d8b&quot;&gt;&amp;quot;foo&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color:#bd8d8b&quot;&gt;&amp;quot;bar&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#000000&quot;&gt;]}&lt;/span&gt;
&lt;/pre&gt;

	&lt;p&gt;and then stripping the object on the other end.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 04 Nov 2008 13:14:00 -0700</pubDate>
    <guid isPermaLink="false">http://blog.joeysmith.com/46.html</guid>
    
</item>
<item>
    <title>Stupid JavaScript Tricks: Make Page Editable</title>
    <link>http://blog.joeysmith.com/37.html</link>
            <category>JavaScript</category>
    
    <comments>http://blog.joeysmith.com/37.html#comments</comments>
    <wfw:comment>http://blog.joeysmith.com/wfwcomment.php?cid=37</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.joeysmith.com/rss.php?version=2.0&amp;type=comments&amp;cid=37</wfw:commentRss>
    

    <author>nospam@example.com (TML)</author>
    <content:encoded>
    	&lt;p&gt;Drag this &lt;a href=&quot;javascript:document.body.contentEditable=&#039;true&#039;;%20document.designMode=&#039;on&#039;;%20void%200&quot;&gt;Make Page Editable&lt;/a&gt; link to your &amp;#8220;Bookmarks Toolbar&amp;#8221; in recent versions of Firefox, and click on it to enable the built-in &amp;#8220;Page Composer&amp;#8221;, allowing you to edit any page you want! &lt;img src=&quot;http://blog.joeysmith.com/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 16 Oct 2008 15:17:45 -0600</pubDate>
    <guid isPermaLink="false">http://blog.joeysmith.com/37.html</guid>
    
</item>
<item>
    <title>Return from hiatus, and a quick jQuery example</title>
    <link>http://blog.joeysmith.com/16.html</link>
            <category>JavaScript</category>
    
    <comments>http://blog.joeysmith.com/16.html#comments</comments>
    <wfw:comment>http://blog.joeysmith.com/wfwcomment.php?cid=16</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.joeysmith.com/rss.php?version=2.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    

    <author>nospam@example.com (TML)</author>
    <content:encoded>
    	&lt;p&gt;Sorry for the break &amp;#8211; I spent the past week or so frantically preparing for, and then attending, my Director&amp;#8217;s annual off-site planning meeting. As always, it was a valuable experience &amp;#8211; the opportunity to interact with Managers in a more relaxed setting, and to see how each of us attacks a given problem from so many different angles, is incredibly cool. Plus, I got to play golf again. &lt;img src=&quot;http://blog.joeysmith.com/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;

	&lt;p&gt;Today I&amp;#8217;m bringing you a &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/joeysmith.com/~joey/jqtest.html&#039;);&quot;  href=&quot;http://joeysmith.com/~joey/jqtest.html&quot;&gt;quick example&lt;/a&gt; of how to use &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/jquery.com/&#039;);&quot;  href=&quot;http://jquery.com/&quot;&gt;jQuery&lt;/a&gt; to check with a &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/joeysmith.com/~joey/jqtest.php?debug=1&#039;);&quot;  href=&quot;http://joeysmith.com/~joey/jqtest.php?debug=1&quot;&gt;Service&lt;/a&gt; to see whether the user should be allowed to toggle the state of a given checkbox. In my example, the &amp;#8220;Service&amp;#8221; only allows you to check boxes labelled with a prime number. I&amp;#8217;m sure there&amp;#8217;s a more jQuery-approved method, but this one was simpler to figure out than &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/docs.jquery.com/Attributes/val#val&#039;);&quot;  href=&quot;http://docs.jquery.com/Attributes/val#val&quot;&gt;.val()&lt;/a&gt; &amp;#8211; I couldn&amp;#8217;t figure out how to make that *un*check a box.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 21 Aug 2008 22:37:10 -0600</pubDate>
    <guid isPermaLink="false">http://blog.joeysmith.com/16.html</guid>
    
</item>

</channel>
</rss>