<?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>Jesse Bilsten &#187; javascript</title>
	<atom:link href="http://jesse.bilsten.net/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://jesse.bilsten.net</link>
	<description>The life of a web entrepreneur</description>
	<lastBuildDate>Tue, 31 Aug 2010 04:47:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Public Relations Fail: Search Engine Optimization and Flash</title>
		<link>http://jesse.bilsten.net/2010/01/public-relations-fail-search-engine-optimization-and-flash/</link>
		<comments>http://jesse.bilsten.net/2010/01/public-relations-fail-search-engine-optimization-and-flash/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 18:33:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://jesse.bilsten.net/?p=465</guid>
		<description><![CDATA[I was very interested in reading Justin’s responses to Armando’s questions but was ultimately let down in that Justin answers questions like a politician: without an ounce of substance. The problem with Flash is that in its current state it requires a site to double the code/content (HTML + XML) in order to serve appropriate [...]]]></description>
			<content:encoded><![CDATA[<p>I was very interested in reading <a title="SEO and Flash" href="http://www.ecommercedeveloper.com/podcasts/episode/1104-Audio-Interview-Adobe-s-Justin-Everett-Church-Discusses-SEO-and-Flash-Content">Justin’s responses to Armando’s questions</a> but was ultimately let down in that Justin answers questions like a politician: without an ounce of substance.</p>
<p>The problem with Flash is that in its current state it requires a site to double the code/content (HTML + XML) in order to serve appropriate content to all viewers.  Armando asked how Flash works with Screen Readers and Search engines and the answer was the same: [We have API calls available for those technologies, it’s up to them to use them].  This tells me the Flash team doesn’t understand the problem nor are they willing to be a part of the solution, only shift the blame if said site doesn’t perform the way it’s supposed to.</p>
<p>What is Flash supposed to do?  Flash needs to be able to sit on top of a functional (consumable by all media, data driven, visual or auditorial) metadata content layer: HTML.  Why you ask?  It’s the only method of data delivery that is consumable by all things “web.”  Having the content in a central location gives two massive benefits that I have yet to see the Flash community answer with any semblance of assurance: How do you (the consumer) determine which content is more important Flash+XML or HTML?  Search engines (the single largest internet consumers) and if you have a screen reader would read BOTH and divide the value of the data between both sources.  Search rankings suffer as the value associated with a site is divided equally between the two sources of information and screen readers end up having to dive into and duplicate content to the listener.  Neither is an answer to the problem and in my opinion creates more problems than we had before.  We’ve already see Flash/HTML site solutions drop in SERPs due to the Link Juice be divided between the two links (one flash, the other html).  Rand Fishkin pointed this out in both the new book and his article referenced by Armando.</p>
<p>Flash should act as a substitute for CSS/Javascript and happily sit above the HTML.  What Armando should have asked Justin is “Why is this so hard to achieve and what is Flash (Adobe) doing to help internet consumers simplify their data consumption?”  And the answer is Flash is trying to create its own “browser”: Air.  Why?  Another good question for Armando but I believe they see the writing on the wall: Flash is a dying solution to rich multimedia on the web.  They’re focusing their efforts on creating a new delivery method.  Maybe the right move?  Maybe not, only time will tell.  Personally I’d like to see them embrace their role as a substitute for CSS/Javascript and push rich web multimedia by providing lightweight fast answers for questions CSS/Javascript can’t answer across all browsers.  But what do I know…</p>
<p>I currently have one Air app (<a title="TweetDeck" href="http://www.tweetdeck.com/">Tweetdeck</a>) installed on my computer and it takes up almost as much memory as my browser does with 20 tabs open.  Yes, that’s around 250mb of RAM to get… 140 characters of text.  Delivery method outlook?  Not great.</p>
]]></content:encoded>
			<wfw:commentRss>http://jesse.bilsten.net/2010/01/public-relations-fail-search-engine-optimization-and-flash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IE 6 Javascript Variable Value Randomly Changing</title>
		<link>http://jesse.bilsten.net/2009/07/ie-6-javascript-variable-value-randomly-changing/</link>
		<comments>http://jesse.bilsten.net/2009/07/ie-6-javascript-variable-value-randomly-changing/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 17:39:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jesse.bilsten.net/?p=286</guid>
		<description><![CDATA[We had an unusual error come up on one of our sites where a promotional ad group was only showing 2 ads when it should have been displaying 3. It only happened in IE 6 and took us a while to figure out so I figured I&#8217;d share the information we discovered. If you look [...]]]></description>
			<content:encoded><![CDATA[<p>We had an unusual error come up on one of our sites where a promotional ad group was only showing 2 ads when it should have been displaying 3.  It only happened in IE 6 and took us a while to figure out so I figured I&#8217;d share the information we discovered.  If you look at the code below and instantly know what is incorrect and why, well my hat is off to you.  For those of you like me who didn&#8217;t readily see what was wrong and why, put on your <a href="http://www.villagehatshop.com/deerstalker_sherlock-holmes.html">Henschel Deerstalker</a> hat and put some tobacco in your pipe.  This is pretty cool.</p>
<pre><code>function doSomething(){
  ...
  for(i=1;i&lt;somevalue ;i++) {
    alert(arrayVar[i]);
  }
  ...
}</code></somevalue></code></pre>
<p>Internet Exploder 6 was reporting the variable &#8220;i&#8221; as going from 1, to 3 and then exiting the loop.  No where in the code was there an i++ or any kind of increment that should have increased it&#8217;s value.  However, there it was, being increased for no apparent reason.  I found a missing &#8220;;&#8221; and a even tried redoing a few calls from $ mootool id calls to getByElementId with no luck.  A co-worker and myself then had an idea that possibly the variable was being shared and because it wasn&#8217;t being declared that it was actually the same pointer in memory as another similar named variable &#8220;i&#8221;.  We changed the code to include the declaration as below and tada, working code without shared memory:</p>
<pre><code>function doSomething(){
  ...
  for(var i=1;i&lt;somevalue ;i++) {
    alert(arrayVar[i]);
  }
  ...
}</code></somevalue></code></pre>
<p>As someone who&#8217;s constantly thinking about security, I wonder what kind of memory hacks you could put into place with this little tid-bit of knowledge.  Obviously no-one should be using IE 6, but for those &#8220;wonderful people&#8221; who are, what kind of trouble can they get into?</p>
]]></content:encoded>
			<wfw:commentRss>http://jesse.bilsten.net/2009/07/ie-6-javascript-variable-value-randomly-changing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE 6 Select dropdown box gets cut off solutions</title>
		<link>http://jesse.bilsten.net/2009/04/ie-6-select-dropdown-box-gets-cut-off-solutions/</link>
		<comments>http://jesse.bilsten.net/2009/04/ie-6-select-dropdown-box-gets-cut-off-solutions/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 16:29:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mootools]]></category>
		<category><![CDATA[select]]></category>

		<guid isPermaLink="false">http://jesse.bilsten.net/?p=179</guid>
		<description><![CDATA[After looking around the internet for a while I finally came across these 3 solutions.  Since Blackberry doesn&#8217;t have jQuery (we currently use an older version of mootools) and I needed a quick fix I ended up going with the behavior option.  However, users need to have their internet security settings on &#8220;medium-low&#8221; for IE [...]]]></description>
			<content:encoded><![CDATA[<p>After looking around the internet for a while I finally came across these 3 solutions.  Since <a title="RIM's Blackberry" href="http://na.blackberry.com">Blackberry</a> doesn&#8217;t have <a title="jQuery" href="http://jquery.com">jQuery</a> (we currently use an older version of <a title="MooTools" href="http://mootools.net/">mootools</a>) and I needed a quick fix I ended up going with the behavior option.  However, users need to have their internet security settings on &#8220;medium-low&#8221; for IE 6 to render it properly.  It&#8217;s not the perfect solution but then I suppose there really isn&#8217;t one for IE 6.  I tried writing a solution within mootools for the problem but in the 5 minutes I spent on it, I noticed it would have overlapped other form elements and I wasn&#8217;t going to spend extra time messing with z-index.</p>
<ul>
<li><a title="jQuery Select Dropdown Cut Off Solution" href="http://css-tricks.com/select-cuts-off-options-in-ie-fix/">jQuery Select Dropdown Cut Off Solution</a></li>
<li><a title="Behavior based Select Dropdown Cut Off Solution" href="http://www.hedgerwow.com/360/dhtml/ui_select_with_fixed_width/bk/demo.php">Behavior based Select Dropdown Cut Off Solution</a></li>
<li><a href="http://www.dougboude.com/blog/1/2008/05/Viewing-Option-Text-in-IE7-thats-Wider-than-the-Select-List.cfm">Doug Boude inline javascript solution</a></li>
</ul>
<p>Here&#8217;s my quick mock up code for mootools if anyone is curious:</p>
<pre><code >for(var i=0;i&amp;lt; $$('select').length;i++) {
  $$('select')[i].addEvent('mouseenter', function () {
    this.setProperty('rel',this.getStyle('width'));
    this.setStyle('width','auto');
  });
  $$('select')[i].addEvent('mouseleave', function () {
    this.setStyle('width',this.getProperty('rel'));
  });
}</code></pre>
<p>And here was the behavior solution:</p>
<pre><code >&lt;!--[if IE]&gt;
&lt;mce :style type="text/css"&gt;&lt; !
select {
  behavior:expression(window.dropdown_menu_hack!=null?window.dropdown_menu_hack(this):0);
}
--&gt;

&lt;script src="dropdown_menu_hack.js" type="text/javascript"&gt;&lt;!--mce:0--&gt;&lt;/script&gt;
&amp;lt; ![endif]--&amp;gt;
&lt;/mce&gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://jesse.bilsten.net/2009/04/ie-6-select-dropdown-box-gets-cut-off-solutions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
