<?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>dawnerd &#187; HTML</title>
	<atom:link href="http://dawnerd.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://dawnerd.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 13 Aug 2010 18:20:31 +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>Fixing Common CSS Issues In IE6 and IE7</title>
		<link>http://dawnerd.com/post/60_fixing-common-css-issues-in-ie6-and-ie7/</link>
		<comments>http://dawnerd.com/post/60_fixing-common-css-issues-in-ie6-and-ie7/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 06:05:01 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[browser quirks]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=60</guid>
		<description><![CDATA[As it turns out, Microsoft really doesn&#8217;t care about web standards at all. It has taken them way too many years to adopt the basics of CSS2 correctly. Now they are trying to expand that with IE8. However, developers still &#8230; <a href="http://dawnerd.com/post/60_fixing-common-css-issues-in-ie6-and-ie7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As it turns out, Microsoft really doesn&#8217;t care about web standards at all. It has taken them way too many years to adopt the basics of CSS2 correctly. Now they are trying to expand that with IE8. However, developers still have to deal with the outdated IE6 and IE7. Using min-width is completely pointless unless your user base only uses good browsers. <span id="more-60"></span></p>
<p>The other day, I literally stumbled upon a JS file that fixes most of the IE6 and IE7 bugs. It emulates a lot of missing CSS functionality, and also applies a generic PNG fix. <a href="http://code.google.com/p/ie7-js/">You can find the file here</a>. I have been using it on all of my projects recently. In combination with a <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">css reset stylesheet</a> and the IE7 JS file, I have had a lot less headaches. I say you give it a shot. it&#8217;s not like it will take a lot of work for you to at least try out.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/60_fixing-common-css-issues-in-ie6-and-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>An Alternate Way To Bypass Javascript&#8217;s Same-Origin Policy</title>
		<link>http://dawnerd.com/post/15_an-alternate-way-to-bypass-javascripts-same-origin-policy/</link>
		<comments>http://dawnerd.com/post/15_an-alternate-way-to-bypass-javascripts-same-origin-policy/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 03:42:40 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[same orgin]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=15</guid>
		<description><![CDATA[If you have worked with AJAX at all, you know that there is this thing called the Same-Origin policy which makes it nearly impossible to send AJAX requests to 3rd party domains. There are workarounds such as going through a &#8230; <a href="http://dawnerd.com/post/15_an-alternate-way-to-bypass-javascripts-same-origin-policy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you have worked with AJAX at all, you know that there is this thing called the Same-Origin policy which makes it nearly impossible to send AJAX requests to 3rd party domains. There are workarounds such as going through a proxy. I don&#8217;t like that and think it&#8217;s messy. However, sometimes it&#8217;s the only way to go about getting the job done. This post is not about going through a proxy, instead, it is about using a little trick I learned from Yahoo.<span id="more-15"></span></p>
<p>If you have control over both domains, then this  may be the ideal solution for you. For example, lets say you have two sites and you need to share data between the sites. Connecting via MySQL could be out of the question. So what do you do now? Create a dynamic javascript include file.</p>
<pre>
<code>
<?php
//some database stuff here
echo "myVar = ['info1','info2','info3'];";
?>
</code>
</pre>
<p>See how that outputs a Javascript array? It will come in handy next.</p>
<pre>
<code>
<script src="domain2.com/dynamicscript.php" type="text/javascript"></script>
<script type="text/javascript">
for(i=1;i<myVar.length;i++)
{
    document.write("

"+myVar[i]+"

");
}
</script>
</code>
</pre>
<p>By including the dynamic.php file as if it were a javascript file, you have imported the data from the other domain without having to use ajax. You can use this to pass any amount of javascript you need. I&#8217;m sure if you&#8217;re clever you will figure out how to make this into a &#8220;mock AJAX&#8221; system.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/15_an-alternate-way-to-bypass-javascripts-same-origin-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Flash Obey Z-Index</title>
		<link>http://dawnerd.com/post/11_making-flash-obey-z-index/</link>
		<comments>http://dawnerd.com/post/11_making-flash-obey-z-index/#comments</comments>
		<pubDate>Thu, 22 May 2008 20:08:45 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[wmode]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=11</guid>
		<description><![CDATA[A common problem with Flash is that it usually will not listen to the z-index of the page. This causes drop down navigation items to appear under the flash. However, there is a neat way to make flash behave correctly &#8230; <a href="http://dawnerd.com/post/11_making-flash-obey-z-index/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A common problem with Flash is that it usually will not listen to the z-index of the page. This causes drop down navigation items to appear under the flash. However, there is a neat way to make flash behave correctly while respecting the XHTML standard. <span id="more-11"></span></p>
<p>We will use the script I put together in the <a href="http://dawnerd.com/html/2008/05/09/simple-xhtml-flash-embedding/">Simple XHTML Flash Embedding</a> article.</p>
<p>The parameter Flash needs is called &#8220;wmode.&#8221; We need to set &#8220;wmode&#8221; to &#8216;transparent.&#8217;</p>
<pre>
<code markup="none">
<object type="application/x-shockwave-flash" data="yourswf.swf" width="100" height="100"><param name="movie" value="yourswf.swf" /><param name="wmode" value="transparent" /><img src="no-flash.png" width="100" height="100" alt="" />
</object>
</code>
</pre>
<p><em>note: wmode can be set as an inline attribute but will break the pages validation.</em></p>
<p>&#8220;Wmode&#8221; is known to cause some problems, so check in all browsers before you go live with anything.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/11_making-flash-obey-z-index/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rollover Images Without Javascript</title>
		<link>http://dawnerd.com/post/9_rollover-images-without-javascript/</link>
		<comments>http://dawnerd.com/post/9_rollover-images-without-javascript/#comments</comments>
		<pubDate>Fri, 16 May 2008 05:29:44 +0000</pubDate>
		<dc:creator>Troy Whiteley</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=9</guid>
		<description><![CDATA[One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually &#8230; <a href="http://dawnerd.com/post/9_rollover-images-without-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the messiest things I have seen is the auto-generated code from Dreamweaver for rollover images. It got me thinking of ways to make the images swap without the need of Javascript. Instantly I thought CSS. It was actually fairly simple to get working. <span id="more-9"></span></p>
<p>Take for example this button:</p>
<pre>
<code markup="none">
<a href="results.html" class="button"></a>
</code>
</pre>
<p>Right now the button doesn&#8217;t do a thing. However, if we apply some CSS to it, we get a nice button with a rollover.</p>
<pre>
<code markup="none">
.button{
    background:url('url/to/image.png') no-repeat;
    width:20px;
    height:20px;
    display:block;
}
.button:hover{
    background:url(url/to/rollover.png) no-repeat;
}
</code>
</pre>
<p>Now the button will show the image and swap to the rollover when you hover over it. All without Javascript. But, you ask &#8220;How do you preload the images without Javascript?&#8221;</p>
<p>I laugh, such a simple answer. Put the rollover images at the top of the page, inside of a hidden div.</p>
<pre>
<code markup="none">
<div style="display:none;">
    <img src="url/to/rollover.png" alt="" />
</div>

</code>
</pre>
<p>And there you have it, JS free rollover images.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/post/9_rollover-images-without-javascript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
