<?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>Connecting the dots... &#187; Javascript</title>
	<atom:link href="http://blog.rajatpandit.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Custom Events in JQuery</title>
		<link>http://blog.rajatpandit.com/2009/07/08/custom-events-in-jquery/</link>
		<comments>http://blog.rajatpandit.com/2009/07/08/custom-events-in-jquery/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 10:36:05 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA["custom events"]]></category>
		<category><![CDATA["progressive enhancement"]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=272</guid>
		<description><![CDATA[Its barely been 1 week and I am already missing out the loveliness of YUI and have to work on JQuery, not saying its bad just missing out on the...]]></description>
			<content:encoded><![CDATA[<p>Its barely been 1 week and I am already missing out the loveliness of <a href="http://developer.yahoo.com/yui">YUI</a> and have to work on <a href="http://jquery.com">JQuery</a>, not saying its bad just missing out on the lack of verbosity that <a href="http://jquery.com">JQuery</a> has to offer.</p>
<p>I had to implement custom events on <a href="http://jquery.com">JQuery</a> found this kind of working for what I needed it to do. Not so sure if this was the most ideal way to do it, but would be worth getting your views on it.</p>
<pre class="brush: jscript; title: ; notranslate">
$(document).ready(function() {
	$(document).bind('custom-event', doSomething);
	$(document).bind('custom-event', doAnotherthing);

	$('#some_name').click(function() {
		$(document).trigger('custom-event', ['foo1', 'foo2']);
	});

});

function doSomething(e, param1, param2) {
	console.log(arguments);
	console.log('doing something..');
}
function doAnotherthing(e, param1, param2)
{
	console.log(arguments);
	console.log('doing another thing..');
}
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/07/08/custom-events-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bookmarklet For YUI Logger</title>
		<link>http://blog.rajatpandit.com/2008/06/26/bookmarklet-for-yui-logger/</link>
		<comments>http://blog.rajatpandit.com/2008/06/26/bookmarklet-for-yui-logger/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 16:24:44 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[debugging in IE]]></category>
		<category><![CDATA[Internet explorer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[yui logger]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=32</guid>
		<description><![CDATA[During development using javascript I have always felt that it would be useful to be able to easily add and remove YUI Logger without having to deal with manually adding...]]></description>
			<content:encoded><![CDATA[<p>During development using javascript I have always felt that it would be useful to be able to easily add and remove <a href="http://developer.yahoo.com/yui/logger/">YUI Logger</a> without having to deal with manually adding and removing the related javascript and css from the source files.</p>
<p>I resolved this problem by writing a bookmarklet which will allow you to do that easily. The details are available <a href="http://blog.rajatpandit.com/sandbox/yuilogger/index.html">here</a>. This has been tested on firefox 2.x, safari 3.1 and IE 6/7. Please post any bugs that you find. If you do the view source of the file you can see the code as well.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/06/26/bookmarklet-for-yui-logger/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Testing progressive enhancement in IE6/7</title>
		<link>http://blog.rajatpandit.com/2008/03/27/testing-progressive-enhancement-in-ie67/</link>
		<comments>http://blog.rajatpandit.com/2008/03/27/testing-progressive-enhancement-in-ie67/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 11:20:52 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE 6]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Progressive Enhacement]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/2008/03/27/testing-progressive-enhancement-in-ie67/</guid>
		<description><![CDATA[Quite often we need to do development in firefox and check in IE6/7 to ensure that the content is still available for users with or without javascript, recently i was...]]></description>
			<content:encoded><![CDATA[<p>Quite often we need to do development in firefox and check in IE6/7 to ensure that the content is still available for users with or without javascript, recently i was faced with a problem which required a clever use of &lt;noscript&gt; tag, thanks to <a href="http://workingwith.me.uk">Neil</a>. Will talk more about it in a later post, this one is about how to configure your IE (esp if you are only using it to check if your stuff works and not for active development) so that you can choose to allow javascript everytime you reload the page, this allows you to quickly look at both the scenarios without having to go through the entire process of enabling and disabling stuff.</p>
<pre>
1. From the Tools menu, select Internet Options.
2. Select the Security tab.
3. Click the Custom Level button.
4. Scroll to the Scripting section.
5. Under Active Scripting, select the Prompt option (usually i would select enable/disable which took time)
6. Click OK.
7. Click the Yes button.
8. Click OK.On your toolbar, click the Refresh button.</pre>
<p>So now every time you reload your page, you get the following prompt</p>
<p><a href="http://blog.rajatpandit.com/wp-content/uploads/2008/03/prompt.jpg" title="prompt.jpg"><img src="http://blog.rajatpandit.com/wp-content/uploads/2008/03/prompt.jpg" alt="prompt.jpg" /></a><br />
and you can choose to allow or disallow javascript.</p>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2008/03/27/testing-progressive-enhancement-in-ie67/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

