<?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>Bugzappy&#039;s Blog &#187; javascript</title>
	<atom:link href="http://www.bugzappy.com/category/code/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bugzappy.com</link>
	<description>on building internet apps</description>
	<lastBuildDate>Mon, 25 Jan 2010 14:24:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linked labels for jqplot</title>
		<link>http://www.bugzappy.com/2009/10/17/linked-labels-for-jqplot/</link>
		<comments>http://www.bugzappy.com/2009/10/17/linked-labels-for-jqplot/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 04:48:46 +0000</pubDate>
		<dc:creator>bugzappy</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.bugzappy.com/?p=359</guid>
		<description><![CDATA[In a typical bar-chart, the jquery plugin jqplot lets you set your x-axis labels to whatever string you want, including HTML mark-up. Imagine you have a chart showing the number of monthly downloads for prototype, jquery, and MooTools.
you might set your x-axis labels (values, to be precise) to
&#60;a href=&#8221;http://www.prototypejs.org&#8221;&#62;jquery&#60;/a&#62;
&#60;a href=&#8221;http://www.jquery.com&#8221;&#62;jquery&#60;/a&#62;
&#60;a href=&#8221;http://www.mootools.com&#8221;&#62;jquery&#60;/a&#62;
The links get rendered in [...]]]></description>
			<content:encoded><![CDATA[<p>In a typical bar-chart, the jquery plugin <a href="http://www.jqplot.com" target="_blank">jqplot</a> lets you set your x-axis labels to whatever string you want, including HTML mark-up. Imagine you have a chart showing the number of monthly downloads for prototype, jquery, and MooTools.</p>
<p>you might set your x-axis labels (values, to be precise) to</p>
<blockquote><p>&lt;a href=&#8221;http://www.prototypejs.org&#8221;&gt;jquery&lt;/a&gt;</p>
<p>&lt;a href=&#8221;http://www.jquery.com&#8221;&gt;jquery&lt;/a&gt;</p>
<p>&lt;a href=&#8221;http://www.mootools.com&#8221;&gt;jquery&lt;/a&gt;</p></blockquote>
<p>The links get rendered in a &lt;div&gt; outside the canvas, but you cannot click them because the chart&#8217;s canvas extends over them.</p>
<p>solve it this way (using jquery for example):</p>
<blockquote><p>$(&#8217;.jqplot-xaxis-tick&#8217;).css(&#8217;z-index&#8217;, 1000);</p></blockquote>
<p>That sets your labels above the canvas and they can now be clicked.</p>
<p>Also reported at <a href="http://groups.google.com/group/jqplot-users/browse_thread/thread/bd9b9c49e609167e">http://groups.google.com/group/jqplot-users/browse_thread/thread/bd9b9c49e609167e</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugzappy.com/2009/10/17/linked-labels-for-jqplot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blink in style using jQuery</title>
		<link>http://www.bugzappy.com/2009/09/05/blink-in-style-using-jquery/</link>
		<comments>http://www.bugzappy.com/2009/09/05/blink-in-style-using-jquery/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 23:01:39 +0000</pubDate>
		<dc:creator>bugzappy</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.bugzappy.com/?p=328</guid>
		<description><![CDATA[Today I released the CyclicFade jQuery Plugin. It has its own dedicated page for details, demo, and download. It is listed in the jquery plugin repository.
]]></description>
			<content:encoded><![CDATA[<p>Today I released the CyclicFade jQuery Plugin. It has its own <a href="http://www.bugzappy.com/cyclic-fade-jquery-plugin/">dedicated page</a> for details, demo, and download. It is <a href="http://plugins.jquery.com/project/CyclicFade" target="_blank">listed in the jquery plugin repository</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugzappy.com/2009/09/05/blink-in-style-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure Integration of 3rd-Party Javascript Code</title>
		<link>http://www.bugzappy.com/2009/09/01/secure-integration-of-3rd-party-javascript-code/</link>
		<comments>http://www.bugzappy.com/2009/09/01/secure-integration-of-3rd-party-javascript-code/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 22:45:14 +0000</pubDate>
		<dc:creator>bugzappy</dc:creator>
				<category><![CDATA[commentary]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[mashup]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[semantic web]]></category>
		<category><![CDATA[XSRF]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://www.bugzappy.com/?p=290</guid>
		<description><![CDATA[Yesterday (august 31, 2009) the OpenAjax Alliance announced in a press release the immediate availability of javascript technology for securely integrating javascript code (widgets) from untrusted sources into your own web pages (and javascript code). It&#8217;s called OpenAjax Hub 2.0 and it is touted as the enabler of secure mashups.
There is a very similar initiative at [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday (august 31, 2009) the OpenAjax Alliance announced in a <a href="http://news.prnewswire.com/ViewContent.aspx?ACCT=109&amp;STORY=/www/story/08-31-2009/0005085209&amp;EDATE=" target="_blank">press release</a> the immediate availability of javascript technology for securely integrating javascript code (widgets) from untrusted sources into your own web pages (and javascript code). It&#8217;s called <a href="http://www.openajax.org/whitepapers/Introducing%20OpenAjax%20Hub%202.0%20and%20Secure%20Mashups.php" target="_blank">OpenAjax Hub 2.0</a> and it is touted as the enabler of secure mashups.</p>
<p>There is a very similar initiative at Microsoft: <a href="http://websandbox.livelabs.com/" target="_blank">websandbox at Microsoft livelabs</a>. I have no idea if these are one and the same initiatives, or competitors, or somewhere in the middle.</p>
<p>My prediction is that beyond mashups and many other fantastic applications, this kind of technology will at last make the <a href="http://en.wikipedia.org/wiki/Semantic_web" target="_blank">Semantic Web</a> a reality. Why? because now data and its closely associated code (just like an object in OOP) can safely travel together from any source to any web application. The code is what gives the data some meaning even when the &#8220;mashup&#8221; does not know the semantics.  As long as we can apply this idea to as *small* a piece of data as we (architects and developers) want, we can build web 3.0.</p>
<p>As a result of this new technology, expect the start of a very dynamic phase of web 2.0 advances.</p>
<p>Read the OpenAjax Hub 2.0 Specification <a href="http://www.openajax.org/member/wiki/OpenAjax_Hub_2.0_Specification" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugzappy.com/2009/09/01/secure-integration-of-3rd-party-javascript-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExpandBox jquery plugin</title>
		<link>http://www.bugzappy.com/2009/04/02/expandbox-jquery-plugin/</link>
		<comments>http://www.bugzappy.com/2009/04/02/expandbox-jquery-plugin/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 06:13:42 +0000</pubDate>
		<dc:creator>bugzappy</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.bugzappy.com/?p=20</guid>
		<description><![CDATA[It&#8217;s a barebones plugin that acts purely as a browser-side widget controller, it does not come with canned HTML/CSS. You must pass the id&#8217;s of the &#60;div&#62; or other elements you want to control to the plugin.
The widget is just a box which starts with a limited height, and then can be expanded by the user [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a barebones plugin that acts purely as a browser-side widget controller, it does not come with canned HTML/CSS. You must pass the id&#8217;s of the &lt;div&gt; or other elements you want to control to the plugin.</p>
<p>The widget is just a box which starts with a limited height, and then can be expanded by the user by a specified increment, or collpased entirely.</p>
<p></p>
<p>Try a DEMO:</p>
<div style="border: 1px solid #ff0000; width: 200px;">
<div id="demo_box" style="padding: 10px; overflow: hidden; width: 200px; max-height: 80px;">
<p>AAAAAAA</p>
<p>BBBBBBBB</p>
<p>CCCCCCC</p>
<p>DDDDDDD</p>
<p>EEEEEEEE</p>
<p>FFFFFFFF</p></div>
<div id="demo_expand" style="color: #ff0000; cursor: pointer; width: 100px; height: 20px; float: left; text-align: left;">+</div>
<div id="demo_collapse" style="color: #ff0000; cursor: pointer; width: 100px; height: 20px; float: left; text-align: right;">-</div>
</div>
<p><script type="text/javascript"><!--
document.write(unescape("%3Cscript src='http://www.bugzappy.com/js/jquery.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='http://www.bugzappy.com/wp-content/uploads/2009/04/jqueryexpandbox.js' type='text/javascript'%3E%3C/script%3E"));
// --></script><br />
<script type="text/javascript"><!--
var $j = jQuery.noConflict();
$j("#demo_box").expandBox('#demo_expand', '#demo_collapse', {shrunkHeight: 80, expandHeightInc: 40, expandText: 'expand', expandDelay: 100, shrinkText: 'collapse'});
// --></script></p>
<p></p>
<p>The CODE for the above example:</p>
<pre>
&lt;div style="border: 1px solid #ff0000; width: 200px;">
&lt;div id="demo_box" style="padding: 10px; overflow: hidden; width: 200px; max-height: 80px;">
&lt;p>AAAAAAA$lt;/p>
&lt;p>BBBBBBBB$lt;/p>
&lt;p>CCCCCCC$lt;/p>
&lt;p>DDDDDDD$lt;/p>
&lt;p>EEEEEEEE$lt;/p>
&lt;p>FFFFFFFF$lt;/p>
&lt;/div>
&lt;div id="demo_expand"
    style="color: #ff0000; cursor: pointer; width: 100px; height: 20px; float: left; text-align: left;">+&lt;/div>
&lt;div id="demo_collapse"
    style="color: #ff0000; cursor: pointer; width: 100px; height: 20px; float: left; text-align: right;">-&lt;/div>
&lt;/div>

&lt;script type="text/javascript">&lt;!--
document.write(unescape("%3Cscript src='http://www.bugzappy.com/js/jquery.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='http://www.bugzappy.com/wp-content/uploads/2009/04/jqueryexpandbox.js' type='text/javascript'%3E%3C/script%3E"));
// -->&lt;/script>

&lt;script type="text/javascript">&lt;!--
var $j = jQuery.noConflict();
$j("#demo_box").expandBox('#demo_expand', '#demo_collapse', {shrunkHeight: 80, expandHeightInc: 40, expandText: 'expand', expandDelay: 100, shrinkText: 'collapse'});
// -->&lt;/script>
</pre>
<p></p>
<p>DOWNLOAD: <span style="color: #551a8b; text-decoration: underline;"><a href="http://www.bugzappy.com/wp-content/uploads/2009/04/jqueryexpandbox.js">jquery.expandbox</a>.js</span></p>
<p></p>
<p>A bit of documentation coming later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bugzappy.com/2009/04/02/expandbox-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
