<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>JavaScript on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/javascript/</link>
		<description>Recent content in JavaScript on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Thu, 02 Apr 2015 18:10:21 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/javascript/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Webpack, React, and Multiple Versions Issues</title>
				<link>https://www.justincarmony.com/2015/04/02/webpack-react-and-multiple-versions-issues/</link>
				<pubDate>Thu, 02 Apr 2015 18:10:21 +0000</pubDate>
				<guid>https://www.justincarmony.com/2015/04/02/webpack-react-and-multiple-versions-issues/</guid>
				<description>&lt;p&gt;I’ve been using React successfully for several projects, and tonight I ran into a problem I hadn’t experienced before. I was trying both &lt;a href=&#34;https://www.npmjs.com/package/react-d3&#34;&gt;&lt;code&gt;react-d3&lt;/code&gt;&lt;/a&gt;and &lt;a href=&#34;https://www.npmjs.com/package/react-d3-components&#34;&gt;&lt;code&gt;react-d3-components&lt;/code&gt;&lt;/a&gt; when I would get an error on rendering:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Uncaught TypeError: Can&#39;t add property context, object is not extensible&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;This error had a very, very deep stack trace far into the depths of React, and I was worried I had encountered a nasty React bug. After some poking around &amp;amp; googling, I discovered that multiple versions of React do not play nicely with each other, at all. When I had installed both those react component libraries, each installed their own version of React, version 0.12. I was using React version 0.13.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Thoughts on Learning React &amp; Flux</title>
				<link>https://www.justincarmony.com/2015/03/18/thoughts-on-learning-react-flux/</link>
				<pubDate>Wed, 18 Mar 2015 18:15:25 +0000</pubDate>
				<guid>https://www.justincarmony.com/2015/03/18/thoughts-on-learning-react-flux/</guid>
				<description>&lt;p&gt;I started to write a blog post detailing everything I’ve learned over the last few months building applications with &lt;a href=&#34;http://facebook.github.io/react/&#34;&gt;React&lt;/a&gt; &amp;amp; &lt;a href=&#34;https://facebook.github.io/flux/&#34;&gt;Flux&lt;/a&gt;. After writing down about 10% of it, I realized it was becoming far too long. So, instead, I’ll be doing a series of posts over the next few weeks.&lt;/p&gt;&#xA;&lt;p&gt;Over the last two months, interest in React has had a surge of interest. If you look at the search term &lt;code&gt;reactjs&lt;/code&gt; &lt;a href=&#34;https://www.google.com/trends/explore#q=reactjs&amp;amp;date=today%2012-m&amp;amp;cmpt=q&amp;amp;tz=&#34;&gt;over the last 12 months&lt;/a&gt;:&lt;/p&gt;</description>
			</item>
			<item>
				<title>X-Requested-With, AJAX Requests, and Android WebViews</title>
				<link>https://www.justincarmony.com/2015/03/11/x-requested-with-ajax-requests-and-android-webviews/</link>
				<pubDate>Wed, 11 Mar 2015 18:20:17 +0000</pubDate>
				<guid>https://www.justincarmony.com/2015/03/11/x-requested-with-ajax-requests-and-android-webviews/</guid>
				<description>&lt;p&gt;Today we ran into an interesting problem with certain pages of our website not loading for Android users inside their Facebook Apps. We dug down and ran into several red herrings, but ultimately found the problem.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-problem&#34;&gt;The Problem&lt;/h2&gt;&#xA;&lt;p&gt;If you Google for “X-Requested-With”, or the &lt;code&gt;$_SERVER&lt;/code&gt; variable name in PHP &lt;code&gt;HTTP_X_REQUESTED_WITH&lt;/code&gt; you will likely find many posts stating that it is a method for detecting AJAX requests. Most major JavaScript libraries and/or frameworks like &lt;a href=&#34;http://jquery.com/&#34;&gt;jQuery&lt;/a&gt; will set the &lt;code&gt;X-Requested-With&lt;/code&gt; HTTP header for any AJAX requests. So if you Google &lt;code&gt;X-Requested-With&lt;/code&gt; or &lt;code&gt;HTTP_X_REQUESTED_WITH&lt;/code&gt; you will see blog posts &amp;amp; StackOverflow answers about detecting AJAX requests.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Node.js, Evented I/O, and a Cup of Tea</title>
				<link>https://www.justincarmony.com/2011/06/02/node-js-event-driven-development-and-tea/</link>
				<pubDate>Thu, 02 Jun 2011 16:30:42 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/06/02/node-js-event-driven-development-and-tea/</guid>
				<description>&lt;p&gt;All Arthur Dent really wanted was a cup of tea.&lt;/p&gt;&#xA;&lt;p&gt;I was reading &lt;a href=&#34;http://en.wikipedia.org/wiki/The_Restaurant_at_the_End_of_the_Universe&#34;&gt;The Restaurant at the End of the Universe&lt;/a&gt; by Douglas Adams, and I found a humorous example of event driven programming. So I thought I would share.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-story&#34;&gt;The Story&lt;/h3&gt;&#xA;&lt;p&gt;Arthur Dent was one of the last surviving humans after Earth had been destroyed to make way for a new hyperspace bypass. He was living on a spaceship known as the &amp;ldquo;Heart of Gold,&amp;rdquo; which onboard had an amazing piece of equipment called the &amp;ldquo;Nutri-Matic Drinks Synthesizer&amp;rdquo; which &amp;ldquo;claimed to produce the widest possible range of drinks personally matched to the tastes and metabolism of whoever cared to use it.&amp;rdquo;&lt;/p&gt;</description>
			</item>
			<item>
				<title>Node.JS, LAMP, and The Future</title>
				<link>https://www.justincarmony.com/2011/04/29/node-js-lamp-and-the-future/</link>
				<pubDate>Fri, 29 Apr 2011 23:35:37 +0000</pubDate>
				<guid>https://www.justincarmony.com/2011/04/29/node-js-lamp-and-the-future/</guid>
				<description>&lt;p&gt;I just read an article about &amp;ldquo;&lt;a href=&#34;http://metamarketsgroup.com/blog/node-js-and-the-javascript-age/&#34;&gt;Node.JS and the JavaScript Age&lt;/a&gt;.&amp;rdquo; It was from a very &amp;ldquo;enthusiastic&amp;rdquo; point of view. My guess is they had tinkered around with Node.JS and using with client-side JavaScript rebuilding their Dashboard. You can do some pretty cool stuff with it, and it has a lot of potential. It is very easy to install and get going, much like Redis. Here ia an excerpt from the article:&lt;/p&gt;</description>
			</item>
			<item>
				<title>jQuery UI - Disable Title On Dialog</title>
				<link>https://www.justincarmony.com/2010/09/16/jquery-ui-disable-title-on-dialog/</link>
				<pubDate>Thu, 16 Sep 2010 05:56:35 +0000</pubDate>
				<guid>https://www.justincarmony.com/2010/09/16/jquery-ui-disable-title-on-dialog/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.justincarmony.com/images/wp/2010/09/jquery-ui-logo.png&#34;&gt;&lt;img src=&#34;https://www.justincarmony.com/images/wp/2010/09/jquery-ui-logo.png&#34; alt=&#34;&#34; title=&#34;jquery-ui-logo&#34;&gt;&lt;/a&gt;For some reason, this was turning out to be kind of hard to accomplish, and everyone on the internet wanted to do it with JavaScript hacks. My issue was if the JavaScript hack didn&amp;rsquo;t execute fast enough, causing the title to flash for just a second, so I&amp;rsquo;d much rather do it with CSS. Unfortunately, there are no built in ways to hide it in jQuery. However, there is an option you can pass in the &lt;strong&gt;.dialog()&lt;/strong&gt; method: &lt;strong&gt;dialogClass&lt;/strong&gt;. This places a custom class in the main div element, allowing you to do something like this:&lt;/p&gt;</description>
			</item>
			<item>
				<title>My 2009 Technology Recap</title>
				<link>https://www.justincarmony.com/2009/12/23/my-2009-technology-recap/</link>
				<pubDate>Wed, 23 Dec 2009 18:55:31 +0000</pubDate>
				<guid>https://www.justincarmony.com/2009/12/23/my-2009-technology-recap/</guid>
				<description>&lt;p&gt;Its been two years now that I&amp;rsquo;ve been a more or less &amp;ldquo;serious blogger.&amp;rdquo; I had using the term blogger, since when people hear about blogs, they think of people either detailing their entire lives, or pumping some angel. For me, blogging has just been a way to share information with people I know locally, and those I don&amp;rsquo;t even know who find my blog via searching. I&amp;rsquo;ve had a few spurts where I blogged quite frequently, but for the most part it was just here and there.&lt;/p&gt;</description>
			</item>
			<item>
				<title>jQuery Tip: Better Toggle</title>
				<link>https://www.justincarmony.com/2009/09/15/jquery-tip-better-toggle/</link>
				<pubDate>Tue, 15 Sep 2009 18:28:05 +0000</pubDate>
				<guid>https://www.justincarmony.com/2009/09/15/jquery-tip-better-toggle/</guid>
				<description>&lt;p&gt;For many web developers, &lt;a href=&#34;http://jquery.com/&#34; title=&#34;jQuery JavaScript &#34;&gt;jQuery&lt;/a&gt; is the most awesome JavaScript library out there. For me, it has turned JavaScript from being a nightmare into a power tool. I love JavaScript now, where as before I truely hated it. Takes all the hassel out of &lt;em&gt;most&lt;/em&gt; compatibility issues across browsers. I spend less time debuging it and more time writing it. While I&amp;rsquo;m on my goal to write more blog posts, I&amp;rsquo;m going to share a few jQuery tricks.&lt;/p&gt;</description>
			</item>
			<item>
				<title>HTML Education in Universities</title>
				<link>https://www.justincarmony.com/2008/12/10/html-education-in-universities/</link>
				<pubDate>Wed, 10 Dec 2008 19:24:46 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/12/10/html-education-in-universities/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.justincarmony.com/images/wp/2008/12/graduation-cap.jpg&#34;&gt;&lt;img src=&#34;https://www.justincarmony.com/images/wp/2008/12/graduation-cap.jpg&#34; alt=&#34;&#34; title=&#34;graduation-cap&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Why, oh why, are website classes so extremely out of date in universities, colleges, and schools? I just spent the last few hours helping my wife with her Information Systems class. I&amp;rsquo;ve had to do similar assignments for technology classes, yet the things they are teaching are extremely out of date and a waste of time. Why? After taking these classes, to actually use HTML, I would have to unlearn 80% of what they taught, and re-learn from scratch.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Empowering JavaScript Through jQuery</title>
				<link>https://www.justincarmony.com/2008/10/25/empowering-javascript-through-jquery/</link>
				<pubDate>Sat, 25 Oct 2008 00:31:27 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/10/25/empowering-javascript-through-jquery/</guid>
				<description>&lt;p&gt;Once I discovered &lt;a href=&#34;http://jquery.com/&#34;&gt;jQuery&lt;/a&gt;, my life as a web developer changed. There are few libraries, tools, etc. that I can honestly say have completely changed the way I code. In all honesty, jQuery makes the difficult aspects of JavaScript and turns them into a strength. I recommend it over any other JavaScript library I know. It is smaller, leaner, straight forwards, and more powerful than anything out there. Large companies like Google, Microsoft, and Dell use it. Microsoft is now including jQuery in Visual Studio, their powerful IDE for making websites. If anything, I have yet to meet a person who has used jQuery and has gone to anything else.&lt;/p&gt;</description>
			</item>
			<item>
				<title>CSS – ID vs Class</title>
				<link>https://www.justincarmony.com/2008/10/03/css-id-vs-class/</link>
				<pubDate>Fri, 03 Oct 2008 22:22:20 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/10/03/css-id-vs-class/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://www.justincarmony.com/images/wp/2008/10/flow_kl_2.jpg&#34;&gt;&lt;img src=&#34;https://www.justincarmony.com/images/2008/10/flow_kl_2-266x300.jpg&#34; alt=&#34;&#34; title=&#34;flow_kl_2&#34;&gt;&lt;/a&gt;After hacking apart &amp;amp; cleaning up code for the better part of the day, I&amp;rsquo;ve decided to set the record straight about CSS, IDs, and Classes. The question is &amp;ldquo;when should I use an ID, and when should I use a class?&amp;rdquo; Is it that big of a deal?&lt;/p&gt;&#xA;&lt;p&gt;The big issue is that people who just write Cascading Style Sheets usually won&amp;rsquo;t run into problems if they are more lax with their use of IDs. Its the people after who coming in trying to add advanced JavaScript features that will end up becoming very, very frustrated.&lt;/p&gt;</description>
			</item>
			<item>
				<title>ASP .NET 2.0, GridViews, HyperLinkField, and JavaScript</title>
				<link>https://www.justincarmony.com/2008/01/08/asp-net-20-gridviews-hyperlinkfield-and-javascript/</link>
				<pubDate>Tue, 08 Jan 2008 04:34:00 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/01/08/asp-net-20-gridviews-hyperlinkfield-and-javascript/</guid>
				<description>&lt;p&gt;I&amp;rsquo;ve found some interesting notes on ASP .NET&amp;rsquo;s GridView, it&amp;rsquo;s limitations and work arounds. For work I was looking for a way to execute JavaScript from clicking a link on a GridView Cell. An example would be to having a list of transactions and wanting to click a link to update it&amp;rsquo;s details. I noticed that many functions of GridView used &lt;a&gt; tags to execute JavaScript. An example would be:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-html&#34; data-lang=&#34;html&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;a&lt;/span&gt; &lt;span class=&#34;na&#34;&gt;href&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s&#34;&gt;&amp;#34;javascript:myFunction(&amp;#39;variable&amp;#39;);&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;Link&lt;span class=&#34;p&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Since I had experience with the HyperLinkField before, I thought I would add a HyperLinkField to my GridView and set the &lt;strong&gt;DataNavigateUrlFields&lt;/strong&gt; to the needed fields and the DataNavigateUrlFormatString to use the fields properly. I was hoping to accomplish it by using the following code, which in turn I found out &lt;em&gt;&lt;strong&gt;this solution does not work:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
