<?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>issue &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/issue/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>setAttribute(&#8216;class&#8217;) and IE</title>
		<link>/2009/09/07/setattributeclass-and-ie/</link>
		<comments>/2009/09/07/setattributeclass-and-ie/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 06:09:44 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[setAttribute]]></category>

		<guid isPermaLink="false">/?p=732</guid>
		<description><![CDATA[What happens on IE, our favorite browser, when you try to setup a class attribute on a DOM element? Actually this is not possible, because setAttribute(&#8216;class&#8217;, &#8216;my-class&#8217;) is obviously working only on non-IE browsers. On IE actually you should setup the class on an element with that structure: element.setAttribute('className', 'my-class');<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/" rel="bookmark" title="CSS Priority: The Difference Between a.my-class and .my-class">CSS Priority: The Difference Between a.my-class and .my-class </a></li>
<li><a href="/2009/12/23/csstext-and-how-it-can-be-very-very-useful/" rel="bookmark" title="cssText and how it can be very very useful">cssText and how it can be very very useful </a></li>
<li><a href="/2010/07/16/friday-algorithms-a-data-structure-javascript-stack/" rel="bookmark" title="Friday Algorithms: A Data Structure: JavaScript Stack">Friday Algorithms: A Data Structure: JavaScript Stack </a></li>
<li><a href="/2009/11/04/jquery-css-selectors-change-one-or-more-css-properties/" rel="bookmark" title="jQuery CSS selectors. Change one or more CSS properties!">jQuery CSS selectors. Change one or more CSS properties! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>What happens on IE, our favorite browser, when you try to setup a class attribute on a DOM element? Actually this is not possible, because setAttribute(&#8216;class&#8217;, &#8216;my-class&#8217;) is obviously working only on non-IE browsers.</p>
<p>On IE actually you should setup the class on an element with that structure:</p>
<blockquote>
<pre>element.setAttribute('className', 'my-class');</pre>
</blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/03/11/css-priority-the-difference-between-a-my-class-and-my-class/" rel="bookmark" title="CSS Priority: The Difference Between a.my-class and .my-class">CSS Priority: The Difference Between a.my-class and .my-class </a></li>
<li><a href="/2009/12/23/csstext-and-how-it-can-be-very-very-useful/" rel="bookmark" title="cssText and how it can be very very useful">cssText and how it can be very very useful </a></li>
<li><a href="/2010/07/16/friday-algorithms-a-data-structure-javascript-stack/" rel="bookmark" title="Friday Algorithms: A Data Structure: JavaScript Stack">Friday Algorithms: A Data Structure: JavaScript Stack </a></li>
<li><a href="/2009/11/04/jquery-css-selectors-change-one-or-more-css-properties/" rel="bookmark" title="jQuery CSS selectors. Change one or more CSS properties!">jQuery CSS selectors. Change one or more CSS properties! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/09/07/setattributeclass-and-ie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>__flash__removeCallback problem on IE6</title>
		<link>/2009/06/24/__flash_removecallback-problem-on-ie6/</link>
		<comments>/2009/06/24/__flash_removecallback-problem-on-ie6/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 12:48:07 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[__flash__removeCallback]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[SWFObject]]></category>
		<category><![CDATA[unload issue]]></category>

		<guid isPermaLink="false">/?p=631</guid>
		<description><![CDATA[Every time the page unloads If there&#8217;s a flash movie into your page using the AMF protocol to speak with the other part of the site, there may be a bug under Internet Explorer version 6 &#8230; again. The AMF protocol stands for Action Message Format is simply JavaScript &#8211; Actionscript way to get connected. &#8230; <a href="/2009/06/24/__flash_removecallback-problem-on-ie6/" class="more-link">Continue reading <span class="screen-reader-text">__flash__removeCallback problem on IE6</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
<li><a href="/2009/05/14/the-swfobject-method-createswf-problem/" rel="bookmark" title="The SWFObject method createSWF problem">The SWFObject method createSWF problem </a></li>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/12/18/whats-the-width-and-height-of-the-visible-part-of-my-browser/" rel="bookmark" title="What&#8217;s the width and height of the visible part of my browser?!">What&#8217;s the width and height of the visible part of my browser?! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Every time the page unloads</h2>
<p>If there&#8217;s a flash movie into your page using the AMF protocol to speak with the other part of the site, there may be a bug under Internet Explorer version 6 &#8230; again. The AMF protocol stands for Action Message Format is simply JavaScript &#8211; Actionscript way to get connected. And it simply registers the callbacks from both sides. So there&#8217;s simply a object/embed pair in the HTML and a Flash movie using AMF, and IE6. Everything&#8217;s OK until leaving the page. On unload the window object the generated JavaScript code breaks and throws an error. Usually it&#8217;s something like that:</p>
<pre lang="actionscript">function __flash__removeCallback(instance, name) {
    ... here instance is given null under IE6
}</pre>
<h2>What if embed with some js library (SWFObject)</h2>
<p>Reading some forum posts it may be working if I was using a js/flash library such as SWFObject, but I don&#8217;t want such, because of one another JavaScript file loading and blocking the content. I just wanted the object/embed to be in my page.<span id="more-631"></span></p>
<h2>Easy to find a solution &#8211; difficult to set it up</h2>
<p>Beside the well known fact that this instance is null and there&#8217;s an error, I couldn&#8217;t make</p>
<pre lang="javascript">if (instance == null) escape this case ...</pre>
<p>because it&#8217;s a Flash Player generated source, which is untouchable.</p>
<h2>The clear way to the working site</h2>
<p>Well on unload of the window object you must remove all the object/embed that&#8217;s giving the problem simply by adding that chunk of code:</p>
<pre lang="javascript">
1. if (document.getElementById(id_of_the_flash_container) != null) {
2.    $(window).unload(function() {
3.         document.getElementById(id_of_the_flash_container).removeChild(document.getElementById(id_of_the_object_tag));
4.    });
5. }</pre>
<p>just replace both <strong>id_of_the_flash_container</strong>, which is some kind of a DIV tag, or other DOM element, and <strong>id_of_the_object_tag</strong>.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
<li><a href="/2009/05/14/the-swfobject-method-createswf-problem/" rel="bookmark" title="The SWFObject method createSWF problem">The SWFObject method createSWF problem </a></li>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/12/18/whats-the-width-and-height-of-the-visible-part-of-my-browser/" rel="bookmark" title="What&#8217;s the width and height of the visible part of my browser?!">What&#8217;s the width and height of the visible part of my browser?! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/24/__flash_removecallback-problem-on-ie6/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>remove iframe border on IE</title>
		<link>/2009/06/11/remove-iframe-border-on-ie/</link>
		<comments>/2009/06/11/remove-iframe-border-on-ie/#respond</comments>
		<pubDate>Thu, 11 Jun 2009 06:24:27 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[frameborder]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">/?p=600</guid>
		<description><![CDATA[Well if both style=&#8221;border:[0&#124;none]&#8221; is working and border=&#8221;0&#8243; attribute doesn&#8217;t help, and all this is not working only on IE, the solution is &#8230; frameborder=&#8221;0&#8243; attribute &#60;iframe frameborder=&#8221;0&#8243; &#8230; &#62;&#60;/iframe&#62; is helping<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/10/google-adsense-iframes-and-ie/" rel="bookmark" title="Google Adsense, iframes and IE">Google Adsense, iframes and IE </a></li>
<li><a href="/2010/02/12/css-border-radius-vs-images/" rel="bookmark" title="CSS border-radius vs. images!">CSS border-radius vs. images! </a></li>
<li><a href="/2010/02/17/htc-round-the-corners-on-ie/" rel="bookmark" title="HTC?! Round the corners on IE!">HTC?! Round the corners on IE! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Well if both style=&#8221;border:[0|none]&#8221; is working and border=&#8221;0&#8243; attribute doesn&#8217;t help, and all this is not working only on IE, the solution is &#8230;</p>
<p>frameborder=&#8221;0&#8243; attribute</p>
<blockquote><p>&lt;iframe frameborder=&#8221;0&#8243; &#8230; &gt;&lt;/iframe&gt; is helping</p></blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/10/google-adsense-iframes-and-ie/" rel="bookmark" title="Google Adsense, iframes and IE">Google Adsense, iframes and IE </a></li>
<li><a href="/2010/02/12/css-border-radius-vs-images/" rel="bookmark" title="CSS border-radius vs. images!">CSS border-radius vs. images! </a></li>
<li><a href="/2010/02/17/htc-round-the-corners-on-ie/" rel="bookmark" title="HTC?! Round the corners on IE!">HTC?! Round the corners on IE! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/11/remove-iframe-border-on-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Adsense, iframes and IE</title>
		<link>/2009/06/10/google-adsense-iframes-and-ie/</link>
		<comments>/2009/06/10/google-adsense-iframes-and-ie/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 12:20:11 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[google adsense]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[iframe]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">/?p=598</guid>
		<description><![CDATA[What a lovely combination Recently I wrote an article about the Google Adsense problem with page load blocking and than the solution was simple and elegant. You must put your ad in a separate .html file and to include it into your page with an iframe. That gives the page the ability to &#8220;breath&#8221; and &#8230; <a href="/2009/06/10/google-adsense-iframes-and-ie/" class="more-link">Continue reading <span class="screen-reader-text">Google Adsense, iframes and IE</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/06/10/google-adsense-blocks-the-page-load/" rel="bookmark" title="Google Adsense blocks the page load">Google Adsense blocks the page load </a></li>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/11/remove-iframe-border-on-ie/" rel="bookmark" title="remove iframe border on IE">remove iframe border on IE </a></li>
<li><a href="/2010/02/10/manage-javascript-and-css-includes-within-zend-framework-application/" rel="bookmark" title="Manage JavaScript and CSS includes within Zend Framework application">Manage JavaScript and CSS includes within Zend Framework application </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What a lovely combination</h2>
<p>Recently I wrote an article about the Google Adsense problem with page load blocking and than the solution was simple and elegant. You must put your ad in a separate .html file and to include it into your page with an iframe. That gives the page the ability to &#8220;breath&#8221; and to load faster.</p>
<p>You can see the entire article <a title="Google Adsense in iframe" href="/2009/06/10/google-adsense-blocks-the-page-load/" target="_self">here</a>.</p>
<h2>When everything&#8217;s OK, wait for the IE</h2>
<p>Yes as usual every browser loaded the iframe correclty, except &#8230; <span id="more-598"></span>IE. Both 6 and 7. What was the problem of that lovely browser? Just as I mentioned in my previous article, I put the Google generated code chunk in a .html file and include it with an iframe.</p>
<p>So far so good. But was actually stoped in on IE. All the developer plugins of IE were incapable of helping me.</p>
<h2>Finally the solution</h2>
<p>The solution itself is so strange and stupid. The file you include your ad banner should be named &#8220;index&#8221;. If you have three ads on your page, and three iframes you must include three index.html files, obviously from different directories. That finally made IE working as the other world.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/06/10/google-adsense-blocks-the-page-load/" rel="bookmark" title="Google Adsense blocks the page load">Google Adsense blocks the page load </a></li>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/06/11/remove-iframe-border-on-ie/" rel="bookmark" title="remove iframe border on IE">remove iframe border on IE </a></li>
<li><a href="/2010/02/10/manage-javascript-and-css-includes-within-zend-framework-application/" rel="bookmark" title="Manage JavaScript and CSS includes within Zend Framework application">Manage JavaScript and CSS includes within Zend Framework application </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/10/google-adsense-iframes-and-ie/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>a tag doesn&#8217;t apply hover on IE6</title>
		<link>/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/</link>
		<comments>/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/#respond</comments>
		<pubDate>Mon, 08 Jun 2009 19:02:49 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[tag]]></category>

		<guid isPermaLink="false">/?p=595</guid>
		<description><![CDATA[Yes, the link &#60;a &#8230; tag is really strange sometimes. We all know how to define :hover for a given a tag class, but if your code doesn&#8217;t apply under IE6 just take a look if you have the href attribute, if not the a tag is not an a tag under that strange, strange &#8230; <a href="/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/" class="more-link">Continue reading <span class="screen-reader-text">a tag doesn&#8217;t apply hover on IE6</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/" rel="bookmark" title="You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;">You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230; </a></li>
<li><a href="/2009/06/24/__flash_removecallback-problem-on-ie6/" rel="bookmark" title="__flash__removeCallback problem on IE6">__flash__removeCallback problem on IE6 </a></li>
<li><a href="/2009/10/30/object-and-embed-tag-position-in-ie/" rel="bookmark" title="object and embed tag position in IE">object and embed tag position in IE </a></li>
<li><a href="/2010/01/07/object-forget-about-embed-tag/" rel="bookmark" title="OBJECT &#038; &#8230; forget about EMBED tag!">OBJECT &#038; &#8230; forget about EMBED tag! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Yes, the link &lt;a &#8230; tag is really strange sometimes. We all know how to define :hover for a given a tag class, but if your code doesn&#8217;t apply under IE6 just take a look if you have the href attribute, if not the a tag is not an a tag under that strange, strange browser.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/" rel="bookmark" title="You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;">You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230; </a></li>
<li><a href="/2009/06/24/__flash_removecallback-problem-on-ie6/" rel="bookmark" title="__flash__removeCallback problem on IE6">__flash__removeCallback problem on IE6 </a></li>
<li><a href="/2009/10/30/object-and-embed-tag-position-in-ie/" rel="bookmark" title="object and embed tag position in IE">object and embed tag position in IE </a></li>
<li><a href="/2010/01/07/object-forget-about-embed-tag/" rel="bookmark" title="OBJECT &#038; &#8230; forget about EMBED tag!">OBJECT &#038; &#8230; forget about EMBED tag! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 3 DateChooser UTC issue</title>
		<link>/2009/05/20/flex-3-datechooser-utc-issue/</link>
		<comments>/2009/05/20/flex-3-datechooser-utc-issue/#comments</comments>
		<pubDate>Wed, 20 May 2009 06:11:21 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[datechooser]]></category>
		<category><![CDATA[getTime]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[unix timestamp]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">/?p=572</guid>
		<description><![CDATA[What I intend to do The task can be described as it is. There&#8217;s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I write the unix timestamp to the url of the browser. Of course I&#8217;m using date.getTime() &#8230; <a href="/2009/05/20/flex-3-datechooser-utc-issue/" class="more-link">Continue reading <span class="screen-reader-text">Flex 3 DateChooser UTC issue</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/03/01/download-custom-flex-3-datechooser-2/" rel="bookmark" title="Download Custom Flex 3 DateChooser">Download Custom Flex 3 DateChooser </a></li>
<li><a href="/2009/03/01/flex-3-custom-datechooser-2/" rel="bookmark" title="Flex 3 Custom DateChooser">Flex 3 Custom DateChooser </a></li>
<li><a href="/2009/02/06/flex-3-custom-preloader/" rel="bookmark" title="Flex 3 Custom Preloader">Flex 3 Custom Preloader </a></li>
<li><a href="/2009/04/25/flex-3-hslider-thumb-gap-issue/" rel="bookmark" title="Flex 3 HSlider thumb gap issue">Flex 3 HSlider thumb gap issue </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What I intend to do</h2>
<p style="text-align: left;">The task can be described as it is. There&#8217;s a Flex 3 DateChooser component integrated with a custom timeline component. The problem occurs when exporting the data from the flash to the browser. Than I write the unix timestamp to the url of the browser. Of course I&#8217;m using date.getTime() in Flex.</p>
<p style="text-align: center;"><a href="/wp-content/uploads/2009/05/datechooser-issue.png"><img class="aligncenter size-medium wp-image-573" title="datechooser-issue" src="/wp-content/uploads/2009/05/datechooser-issue-300x120.png" alt="" width="430" srcset="/wp-content/uploads/2009/05/datechooser-issue-300x120.png 300w, /wp-content/uploads/2009/05/datechooser-issue.png 647w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<h2>getTime()</h2>
<p>Applying getTime() to any object of type Date in Flex results in a unix timestamp with included milliseconds. Of course the server side technology which in our case is PHP should devide by 1000 to remove the milliseconds. <span id="more-572"></span></p>
<h2>The problem</h2>
<p>The database and the server side script language use a UTC dates. The problem is the Flash functions getFullYear, getMonth, etc. don&#8217;t deal with UTC. Of course you can switch to getUTCFullYear, getUTCMonth, etc. but than comes the real problem.</p>
<h2>The DateChooser &#8230;</h2>
<p>When you&#8217;re using dates in Flex with no UTC in mind everything&#8217;s OK. You have the DateChooser component. Clicking on the 16th of May 2009 results in</p>
<blockquote><p>Alert.show(date.toString());</p></blockquote>
<p>which prints 16th of May 2009, which appears to be OK. Yes but the date.getTime() is still using the non-UTC time. If you&#8217;re using UTC, and suddenly print that kind of a message:</p>
<blockquote><p>Alert.show(date.toUTCString());</p></blockquote>
<p>Then for 16th of May 2009 you receive 15th of May 2009. Which is really bad.</p>
<h2>No workaround</h2>
<p>Unfortunately I didn&#8217;t find any workaround till now. I hope I&#8217;ll soon.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/03/01/download-custom-flex-3-datechooser-2/" rel="bookmark" title="Download Custom Flex 3 DateChooser">Download Custom Flex 3 DateChooser </a></li>
<li><a href="/2009/03/01/flex-3-custom-datechooser-2/" rel="bookmark" title="Flex 3 Custom DateChooser">Flex 3 Custom DateChooser </a></li>
<li><a href="/2009/02/06/flex-3-custom-preloader/" rel="bookmark" title="Flex 3 Custom Preloader">Flex 3 Custom Preloader </a></li>
<li><a href="/2009/04/25/flex-3-hslider-thumb-gap-issue/" rel="bookmark" title="Flex 3 HSlider thumb gap issue">Flex 3 HSlider thumb gap issue </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/05/20/flex-3-datechooser-utc-issue/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Zend_Date with dates before 1901</title>
		<link>/2009/05/12/zend_date-with-dates-before-1901/</link>
		<comments>/2009/05/12/zend_date-with-dates-before-1901/#respond</comments>
		<pubDate>Tue, 12 May 2009 12:30:58 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend framework]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[zend_date]]></category>

		<guid isPermaLink="false">/?p=562</guid>
		<description><![CDATA[Zend_Date Zend_Date is the Zend Framework module for manipulation of dates. It gives several advantages. Everybody how has dealed with dates knows that built in PHP date function cannot manage dates before 1901. With that kind of problems Zend_Date is pretty fine. How to do that If you have only Zend_Date::set($timestamp); is not enough. The &#8230; <a href="/2009/05/12/zend_date-with-dates-before-1901/" class="more-link">Continue reading <span class="screen-reader-text">Zend_Date with dates before 1901</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/04/28/zend_datesetoptions-and-format_type-in-zend-framework-1-10-3/" rel="bookmark" title="Zend_Date::setOptions and format_type in Zend Framework 1.10.3">Zend_Date::setOptions and format_type in Zend Framework 1.10.3 </a></li>
<li><a href="/2010/01/22/zend_date-make-it-work-and-benefit-with-locales/" rel="bookmark" title="Zend_Date &#8211; make it work and benefit with locales">Zend_Date &#8211; make it work and benefit with locales </a></li>
<li><a href="/2009/05/12/flex-3-compare-two-dates/" rel="bookmark" title="Flex 3: compare two dates">Flex 3: compare two dates </a></li>
<li><a href="/2011/11/04/how-to-check-if-a-date-is-more-or-less-than-a-month-ago-with-php/" rel="bookmark" title="How to Check if a Date is More or Less Than a Month Ago with PHP">How to Check if a Date is More or Less Than a Month Ago with PHP </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Zend_Date</h2>
<p>Zend_Date is the Zend Framework module for manipulation of dates. It gives several advantages. Everybody how has dealed with dates knows that built in PHP date function cannot manage dates before 1901. With that kind of problems Zend_Date is pretty fine.</p>
<h2>How to do that</h2>
<p>If you have only</p>
<blockquote><p>Zend_Date::set($timestamp);</p></blockquote>
<p>is not enough. The timestamp is an int representation and the framework cannot get the timezone from that and trows an error.</p>
<h2>The simple way to solve the problem</h2>
<p>Replace the line above with these:<span id="more-562"></span></p>
<blockquote><p>$date = new Zend_Date($timestamp);</p>
<p>$date-&gt;setTimezone(&#8216;Europe/Paris&#8217;);</p>
<p>print $date-&gt;toString(&#8216;d M y&#8217;);</p></blockquote>
<p>Now everything should be in place.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/04/28/zend_datesetoptions-and-format_type-in-zend-framework-1-10-3/" rel="bookmark" title="Zend_Date::setOptions and format_type in Zend Framework 1.10.3">Zend_Date::setOptions and format_type in Zend Framework 1.10.3 </a></li>
<li><a href="/2010/01/22/zend_date-make-it-work-and-benefit-with-locales/" rel="bookmark" title="Zend_Date &#8211; make it work and benefit with locales">Zend_Date &#8211; make it work and benefit with locales </a></li>
<li><a href="/2009/05/12/flex-3-compare-two-dates/" rel="bookmark" title="Flex 3: compare two dates">Flex 3: compare two dates </a></li>
<li><a href="/2011/11/04/how-to-check-if-a-date-is-more-or-less-than-a-month-ago-with-php/" rel="bookmark" title="How to Check if a Date is More or Less Than a Month Ago with PHP">How to Check if a Date is More or Less Than a Month Ago with PHP </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/05/12/zend_date-with-dates-before-1901/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex 3 HSlider thumb gap issue</title>
		<link>/2009/04/25/flex-3-hslider-thumb-gap-issue/</link>
		<comments>/2009/04/25/flex-3-hslider-thumb-gap-issue/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 15:19:33 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[gap]]></category>
		<category><![CDATA[hslider]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[thumbs]]></category>

		<guid isPermaLink="false">/?p=547</guid>
		<description><![CDATA[Flex 3 HSlider thumb gap issue<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/05/20/flex-3-datechooser-utc-issue/" rel="bookmark" title="Flex 3 DateChooser UTC issue">Flex 3 DateChooser UTC issue </a></li>
<li><a href="/2009/02/08/flash-player-with-debugger-issue/" rel="bookmark" title="flash player with debugger issue">flash player with debugger issue </a></li>
<li><a href="/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/" rel="bookmark" title="You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;">You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230; </a></li>
<li><a href="/2009/12/01/flex-3-netstream-video-rotation/" rel="bookmark" title="Flex 3 NetStream video rotation">Flex 3 NetStream video rotation </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Introduction to the problem</h2>
<p>When the HSlider is set up with two or more thumbs there&#8217;s a gap between them always. The problem is that you may want to put them on one single value of the slider, but it&#8217;s not possible.</p>
<h2>First: hide your thumbs</h2>
<p>The quick solution is to make custom skin for the thumbs, setup the height and width of the thumb to be 1px and make a transparent background image for skinning them. That of course does not solve the problem. There&#8217;s still gap of 1 value between the thumbs, and still you cannot select one single value with both of them.<span id="more-547"></span></p>
<h2>Make your own thumbs</h2>
<p>It&#8217;s difficult to make the calculation and positioning of course. With that approach you&#8217;ve to be careful with the math to adjust properly the new thumbs. They can be some kind of Flex built in component. As the button control is or whatever.</p>
<h2>Hope for workaround</h2>
<p>As it appears there&#8217;s a reported bug for this issue. And I hope soon there will be a workaround or even better there&#8217;s going to be new version. Something I don&#8217;t like in commercial software.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/05/20/flex-3-datechooser-utc-issue/" rel="bookmark" title="Flex 3 DateChooser UTC issue">Flex 3 DateChooser UTC issue </a></li>
<li><a href="/2009/02/08/flash-player-with-debugger-issue/" rel="bookmark" title="flash player with debugger issue">flash player with debugger issue </a></li>
<li><a href="/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/" rel="bookmark" title="You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;">You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230; </a></li>
<li><a href="/2009/12/01/flex-3-netstream-video-rotation/" rel="bookmark" title="Flex 3 NetStream video rotation">Flex 3 NetStream video rotation </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/04/25/flex-3-hslider-thumb-gap-issue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>You should not insert an &#8220;a&#8221; tag in another &#8220;a&#8221; tag! &#8230;</title>
		<link>/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/</link>
		<comments>/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/#respond</comments>
		<pubDate>Tue, 14 Apr 2009 05:31:34 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">/?p=504</guid>
		<description><![CDATA[IE6 fails to display correctly nested <a> tags. Why and how to find a workaround?<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/" rel="bookmark" title="a tag doesn&#8217;t apply hover on IE6">a tag doesn&#8217;t apply hover on IE6 </a></li>
<li><a href="/2009/04/25/flex-3-hslider-thumb-gap-issue/" rel="bookmark" title="Flex 3 HSlider thumb gap issue">Flex 3 HSlider thumb gap issue </a></li>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/" rel="bookmark" title="Flash doesn&#8217;t load in div with display:none style">Flash doesn&#8217;t load in div with display:none style </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>The Problem</h2>
<p>Well it may look strange to want to do that exaclty. Who wants to have a &lt;a&gt; tag in another. It really looks semanticaly incorrect, but however, every normal A grade browser&#8217;s displaing it correctly, except .. IE6.</p>
<h2>The Case</h2>
<p>The Microsoft team may be too much semanticaly involved in that problem, I should guess, but that&#8217;s really impossible.</p>
<h2>The Workaround</h2>
<p>The workaround is trivial. You just put the &lt;a&gt; tags one after another and adjust them with relative position and margin with negative values.</p>
<h2>&#8230; and The Example</h2>
<blockquote><p>&lt;a href=&#8221;#&#8221;&gt;link here&lt;/a&gt;</p>
<p>&lt;a href=&#8221;#&#8221; style=&#8221;margin:-10px 0 0; position : relative;&#8221;&gt;link there&lt;/a&gt;</p></blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/06/08/a-tag-doesnt-apply-hover-on-ie6/" rel="bookmark" title="a tag doesn&#8217;t apply hover on IE6">a tag doesn&#8217;t apply hover on IE6 </a></li>
<li><a href="/2009/04/25/flex-3-hslider-thumb-gap-issue/" rel="bookmark" title="Flex 3 HSlider thumb gap issue">Flex 3 HSlider thumb gap issue </a></li>
<li><a href="/2011/03/29/scroll-an-iframe-content-to-a-predefined-position/" rel="bookmark" title="Scroll an IFRAME Content to a Predefined Position">Scroll an IFRAME Content to a Predefined Position </a></li>
<li><a href="/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/" rel="bookmark" title="Flash doesn&#8217;t load in div with display:none style">Flash doesn&#8217;t load in div with display:none style </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/04/14/you-should-not-insert-an-tag-in-another-tag-ie-breaks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash doesn&#8217;t load in div with display:none style</title>
		<link>/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/</link>
		<comments>/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 05:42:31 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hidden]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[load]]></category>

		<guid isPermaLink="false">/?p=477</guid>
		<description><![CDATA[Flash doesn't load in display:none div.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/04/14/load-flash-swf-in-hidden-div/" rel="bookmark" title="load flash .swf in hidden div">load flash .swf in hidden div </a></li>
<li><a href="/2009/02/08/flash-player-with-debugger-issue/" rel="bookmark" title="flash player with debugger issue">flash player with debugger issue </a></li>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
<li><a href="/2009/04/24/scroll-the-page-with-javascript/" rel="bookmark" title="Scroll the page with JavaScript">Scroll the page with JavaScript </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>Where&#8217;s the problem?</h2>
<p>As it appears if you have flash embed / object tags in a div which is initaly hidden (style=&#8221;display:none&#8221;) cannot be loaded. It means the .swf file is loaded via HTTP but when the div become visible then starts the loading process and the flash starts from the begining.</p>
<h2>Is there a workaround?</h2>
<p>I&#8217;m looking for a workaround which I&#8217;ll share as soon as I find it. If you have a solution please share it with us.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/04/14/load-flash-swf-in-hidden-div/" rel="bookmark" title="load flash .swf in hidden div">load flash .swf in hidden div </a></li>
<li><a href="/2009/02/08/flash-player-with-debugger-issue/" rel="bookmark" title="flash player with debugger issue">flash player with debugger issue </a></li>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
<li><a href="/2009/04/24/scroll-the-page-with-javascript/" rel="bookmark" title="Scroll the page with JavaScript">Scroll the page with JavaScript </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/04/08/flash-doesnt-load-in-div-with-display-none-style/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
