<?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>David Walsh :: Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞. &#187; Browsers</title> <atom:link href="http://davidwalsh.name/tutorials/browsers/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 02 Sep 2010 03:13:15 +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>Image Reflections with&#160;CSS</title><link>http://davidwalsh.name/css-reflection</link> <comments>http://davidwalsh.name/css-reflection#comments</comments> <pubDate>Thu, 19 Aug 2010 23:51:20 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[CSS]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=5047</guid> <description><![CDATA[<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/css-reflection">Image Reflections with&nbsp;CSS</a></p>No related posts.]]></description> <content:encoded><![CDATA[<a
href="http://davidwalsh.name/dw-content/safari-reflection.php" class="demo"<img src="http://davidwalsh.name/dw-content/css-reflection.jpg" alt="CSS Image Reflection" class="image" /></a><p>Image reflection is a great way to subtly spice up an image.  The first method of creating these reflections was baking them right into the images themselves.  Within the past few years, we&#8217;ve introduced <a
href="http://davidwalsh.name/javascrip-reflection">JavaScript strategies</a> and CANVAS alternatives to achieve image reflections without having to modify original images.  The minds behind WebKit have their own idea behind image reflection:  pure CSS.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/safari-reflection.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>The Webkit&nbsp;CSS</h2><p>The -webkit-box-reflect property accepts a value in the following format:</p><pre class="css">
-webkit-box-reflect: 
	&lt;direction&gt; /* above|below|left|right */ 	
	&lt;offset&gt;    /* pixel value start offset from image */
	&lt;mask-box-image&gt; /* http://webkit.org/blog/181/css-masks/ */
</pre><p>A sample usage of -webkit-box-reflect looks like:</p><pre class="css">
.reflectBelow	{ 
	-webkit-box-reflect: below 0
    -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white)); 
}
</pre><p>An involved CSS value but well worth the work.  The gradient is linear from left top to left bottom from transparent to white, showing half (0.5 the image).</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/safari-reflection.php" class="demo">View Demo</a><div
class="clear"></div></div><p>WebKit first implemented CSS reflections in 2008 and, to my knowledge, no other browsers have implemented a similar API. I find that frustrating but image reflection isn&#8217;t a priority so I can&#8217;t complain too much.  I am glad, however, that this is just one of several CSS enhancements given to us by the developers of WebKit!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/css-reflection">Image Reflections with&nbsp;CSS</a></p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/css-reflection/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>WebKit Marquee CSS:  Bringin&#8217; Sexy&#160;Back</title><link>http://davidwalsh.name/webkit-marquee-css</link> <comments>http://davidwalsh.name/webkit-marquee-css#comments</comments> <pubDate>Mon, 05 Jul 2010 16:46:07 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Markup]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=5006</guid> <description><![CDATA[We all joke about the days of Web yesteryear.  You remember them:  stupid animated GIFs (flames and &#8220;coming soon&#8221; images, most notably), lame counters, guestbooks, applets, etc.  Another &#8220;feature&#8221; we thought we had gotten rid of was the marquee.  The marquee was a rudimentary, javascript-like effect to move text from one side of a block [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/webkit-marquee-css">WebKit Marquee CSS:  Bringin&#8217; Sexy&nbsp;Back</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/webkit-appearance' rel='bookmark' title='Permanent Link: WebKit-Specific Style:&nbsp;-webkit-appearance'>WebKit-Specific Style:&nbsp;-webkit-appearance</a></li><li><a
href='http://davidwalsh.name/css-transformations' rel='bookmark' title='Permanent Link: Sexy Link Transformations with&nbsp;CSS'>Sexy Link Transformations with&nbsp;CSS</a></li><li><a
href='http://davidwalsh.name/rounded-corners-webkit' rel='bookmark' title='Permanent Link: Rounded Corners in&nbsp;Webkit'>Rounded Corners in&nbsp;Webkit</a></li><li><a
href='http://davidwalsh.name/album-art' rel='bookmark' title='Permanent Link: Sexy Album Art with MooTools or&nbsp;jQuery'>Sexy Album Art with MooTools or&nbsp;jQuery</a></li><li><a
href='http://davidwalsh.name/firefox-internal-rendering-css' rel='bookmark' title='Permanent Link: Firefox 3&#8242;s Internal Rendering&nbsp;CSS'>Firefox 3&#8242;s Internal Rendering&nbsp;CSS</a></li></ol>]]></description> <content:encoded><![CDATA[<p>We all joke about the days of <a
href="http://davidwalsh.name/open-letter-webmaster">Web yesteryear</a>.  You remember them:  stupid animated GIFs (flames and &#8220;coming soon&#8221; images, most notably), lame counters, guestbooks, applets, etc.  Another &#8220;feature&#8221; we thought we had gotten rid of was the marquee.  The marquee was a rudimentary, javascript-like effect to move text from one side of a block to another.  I was recently looking at WebKit&#8217;s CSS specs and found that Safari has implemented CSS marquees.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/safari-marquee.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>The CSS&nbsp;Format</h2><pre class="css">
.marquee {  
	overflow-x: -webkit-marquee;
	-webkit-marquee-direction: ahead|auto|backwards|down|forwards|inherit|left|reverse|right|up;
	-webkit-marquee-increment: small|medium|large;
	-webkit-marquee-repetition: {number};
	-webkit-marquee-speed: slow|normal|fast;
	-webkit-marquee-style: alternate|inherit|none|scroll|slide;
	font-size:1.4em;
}
</pre><p>There are five pieces to the marquee puzzle:</p><ul><li>overflow-x:  Should be set to -webkit-marquee</li><li>-webkit-marquee-direction:  The direction of the marquee.</li><li>-webkit-marquee-increment:  The size by which to move.</li><li>-webkit-marquee-repetition:  The  number of times the marquee should repeat.</li><li>-webkit-marquee-speed:  The speed at which to move the ext.</li><li>-webkit-marquee-style:  The effect which the marquee should function.</li></ul><h2>CSS Marquee&nbsp;Usage</h2><pre class="css">
.marquee {  
	overflow-x: -webkit-marquee;
	-webkit-marquee-direction: backwards;
	-webkit-marquee-style: slide;
	-webkit-marquee-speed: fast;
	-webkit-marquee-increment: large;
	-webkit-marquee-repetition: 6;
	font-size:1.4em;
}
</pre><p>The example uses each of the marquee properties given above and should be straight forward.  If you choose to use WebKit&#8217;s marquee, experiment with the settings to make sure the marquee does what you want.  When it doesn&#8217;t, fix it with JavaScript&#8230;or question why you&#8217;re using a marquee at all.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/safari-marquee.php" class="demo">View Demo</a><div
class="clear"></div></div><p>No word yet on when the WebKit team plans to implement a CSS counter.  I&#8217;m sure I&#8217;ll do a tutorial on it when the time comes.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/webkit-marquee-css">WebKit Marquee CSS:  Bringin&#8217; Sexy&nbsp;Back</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/webkit-appearance' rel='bookmark' title='Permanent Link: WebKit-Specific Style:&nbsp;-webkit-appearance'>WebKit-Specific Style:&nbsp;-webkit-appearance</a></li><li><a
href='http://davidwalsh.name/css-transformations' rel='bookmark' title='Permanent Link: Sexy Link Transformations with&nbsp;CSS'>Sexy Link Transformations with&nbsp;CSS</a></li><li><a
href='http://davidwalsh.name/rounded-corners-webkit' rel='bookmark' title='Permanent Link: Rounded Corners in&nbsp;Webkit'>Rounded Corners in&nbsp;Webkit</a></li><li><a
href='http://davidwalsh.name/album-art' rel='bookmark' title='Permanent Link: Sexy Album Art with MooTools or&nbsp;jQuery'>Sexy Album Art with MooTools or&nbsp;jQuery</a></li><li><a
href='http://davidwalsh.name/firefox-internal-rendering-css' rel='bookmark' title='Permanent Link: Firefox 3&#8242;s Internal Rendering&nbsp;CSS'>Firefox 3&#8242;s Internal Rendering&nbsp;CSS</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/webkit-marquee-css/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>WebKit-Specific Style:&#160;-webkit-appearance</title><link>http://davidwalsh.name/webkit-appearance</link> <comments>http://davidwalsh.name/webkit-appearance#comments</comments> <pubDate>Tue, 29 Jun 2010 13:59:00 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[CSS]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4999</guid> <description><![CDATA[I was recently scoping out the horrid source code of the Google homepage when I noticed the &#8220;Google Search&#8221; and &#8220;I&#8217;m Feeling Lucky&#8221; buttons had a style definition I hadn&#8217;t seen before:  -webkit-appearance.  The value assigned to the style was &#8220;push-button.&#8221;  They are buttons so that makes sense but I was curious as to the [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/webkit-appearance">WebKit-Specific Style:&nbsp;-webkit-appearance</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/webkit-marquee-css' rel='bookmark' title='Permanent Link: WebKit Marquee CSS:  Bringin&#8217; Sexy&nbsp;Back'>WebKit Marquee CSS:  Bringin&#8217; Sexy&nbsp;Back</a></li><li><a
href='http://davidwalsh.name/rounded-corners-webkit' rel='bookmark' title='Permanent Link: Rounded Corners in&nbsp;Webkit'>Rounded Corners in&nbsp;Webkit</a></li><li><a
href='http://davidwalsh.name/dojo-twitter' rel='bookmark' title='Permanent Link: Create Twitter-Style Buttons with the Dojo&nbsp;Toolkit'>Create Twitter-Style Buttons with the Dojo&nbsp;Toolkit</a></li><li><a
href='http://davidwalsh.name/github-css' rel='bookmark' title='Permanent Link: Create GitHub-Style Buttons with CSS and jQuery, MooTools, or Dojo&nbsp;JavaScript'>Create GitHub-Style Buttons with CSS and jQuery, MooTools, or Dojo&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/mootools-style-media' rel='bookmark' title='Permanent Link: MooTools: Set Style Per&nbsp;Media'>MooTools: Set Style Per&nbsp;Media</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I was recently scoping out the horrid source code of the Google homepage when I noticed the &#8220;Google Search&#8221; and &#8220;I&#8217;m Feeling Lucky&#8221; buttons had a style definition I hadn&#8217;t seen before:  -webkit-appearance.  The value assigned to the style was &#8220;push-button.&#8221;  They are buttons so that makes sense but I was curious as to the possible values available for that style.  What I found was that there are a *ton* and that you can set any HTML element to look like a completely different element.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/webkit-styles.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>Possible -webkit-appearance&nbsp;Values</h2><ul><li>checkbox</li><li>radio</li><li>push-button</li><li>square-button</li><li>button</li><li>button-bevel</li><li>listbox</li><li>listitem</li><li>menulist</li><li>menulist-button</li><li>menulist-text</li><li>menulist-textfield</li><li>scrollbarbutton-up</li><li>scrollbarbutton-down</li><li>scrollbarbutton-left</li><li>scrollbarbutton-right</li><li>scrollbartrack-horizontal</li><li>scrollbartrack-vertical</li><li>scrollbarthumb-horizontal</li><li>scrollbarthumb-vertical</li><li>scrollbargripper-horizontal</li><li>scrollbargripper-vertical</li><li>slider-horizontal</li><li>slider-vertical</li><li>sliderthumb-horizontal</li><li>sliderthumb-vertical</li><li>caret</li><li>searchfield</li><li>searchfield-decoration</li><li>searchfield-results-decoration</li><li>searchfield-results-button</li><li>searchfield-cancel-button</li><li>textfield</li><li>textarea</li></ul><h2>The&nbsp;HTML</h2><pre class="html">
&lt;span class="webkit-me"&gt;My Span Tag&lt;/span&gt;
</pre><p>Just a SPAN tag, right?  We&#8217;ll see about that.</p><h2>The&nbsp;CSS</h2><pre class="html">
.webkit-me { -webkit-appearance:push-button; }
</pre><p>Now my span looks like a button.  Weird, huh?  It can get worse:</p><pre class="html">
.webkit-me { -webkit-appearance:checkbox; }
</pre><p>That&#8217;s right&#8230;my SPAN tag now looks like checkbox.  Weird.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/webkit-styles.php" class="demo">View Demo</a><div
class="clear"></div></div><p>Be sure to check out my demo &#8212; I&#8217;ve got each -webkit-appearance setting represented.  Some elements show no change but some look downright odd!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/webkit-appearance">WebKit-Specific Style:&nbsp;-webkit-appearance</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/webkit-marquee-css' rel='bookmark' title='Permanent Link: WebKit Marquee CSS:  Bringin&#8217; Sexy&nbsp;Back'>WebKit Marquee CSS:  Bringin&#8217; Sexy&nbsp;Back</a></li><li><a
href='http://davidwalsh.name/rounded-corners-webkit' rel='bookmark' title='Permanent Link: Rounded Corners in&nbsp;Webkit'>Rounded Corners in&nbsp;Webkit</a></li><li><a
href='http://davidwalsh.name/dojo-twitter' rel='bookmark' title='Permanent Link: Create Twitter-Style Buttons with the Dojo&nbsp;Toolkit'>Create Twitter-Style Buttons with the Dojo&nbsp;Toolkit</a></li><li><a
href='http://davidwalsh.name/github-css' rel='bookmark' title='Permanent Link: Create GitHub-Style Buttons with CSS and jQuery, MooTools, or Dojo&nbsp;JavaScript'>Create GitHub-Style Buttons with CSS and jQuery, MooTools, or Dojo&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/mootools-style-media' rel='bookmark' title='Permanent Link: MooTools: Set Style Per&nbsp;Media'>MooTools: Set Style Per&nbsp;Media</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/webkit-appearance/feed</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Using Firefox&#8217;s Geolocation&#160;API</title><link>http://davidwalsh.name/geolocation-api</link> <comments>http://davidwalsh.name/geolocation-api#comments</comments> <pubDate>Mon, 28 Jun 2010 13:35:21 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[JavaScript]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4997</guid> <description><![CDATA[One interesting aspect of web development is Geolocation; where is your user viewing your website from? You can base your language locale on that data or show certain products in your store based on the user&#8217;s location. Let&#8217;s examine how you can use Geolocation within Firefox to get location details down to the street! View [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/geolocation-api">Using Firefox&#8217;s Geolocation&nbsp;API</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/detect-iphone' rel='bookmark' title='Permanent Link: iPhone &#038; iPod Detection Using&nbsp;JavaScript'>iPhone &#038; iPod Detection Using&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/favorite-link-create-bookmark-link' rel='bookmark' title='Permanent Link: &#8220;Favorite&#8221; Link &#8212; How To Create a Bookmark&nbsp;Link'>&#8220;Favorite&#8221; Link &#8212; How To Create a Bookmark&nbsp;Link</a></li><li><a
href='http://davidwalsh.name/firefox-plugins' rel='bookmark' title='Permanent Link: My Firefox&nbsp;Plugins'>My Firefox&nbsp;Plugins</a></li><li><a
href='http://davidwalsh.name/html5-storage' rel='bookmark' title='Permanent Link: Using HTML5 Web&nbsp;Storage'>Using HTML5 Web&nbsp;Storage</a></li><li><a
href='http://davidwalsh.name/detecting-google-chrome-javascript' rel='bookmark' title='Permanent Link: Detecting Google Chrome Using&nbsp;JavaScript'>Detecting Google Chrome Using&nbsp;JavaScript</a></li></ol>]]></description> <content:encoded><![CDATA[<a
href="http://davidwalsh.name/dw-content/geolocation.php"><img
src="http://davidwalsh.name/dw-content/firefox-256.png" alt="Mozilla Firefox Geolocation" class="image" /></a><p>One interesting aspect of web development is Geolocation;  where is your user viewing your website from?  You can base your language locale on that data or show certain products in your store based on the user&#8217;s location.  Let&#8217;s examine how you can use <a
href="https://developer.mozilla.org/en/using_geolocation" rel="nofollow">Geolocation within Firefox</a> to get location details down to the street!</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/geolocation.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>Detecting Browser Geolocation&nbsp;Capabilities</h2><pre class="js">
if(navigator.geolocation) {
	//w00t!
}
else {
	alert('No soup for you!  Your browser does not support this feature');
}
</pre><p>They key to detecting Geolocation within your browser is the <span
class="function">navigator.geolocation</span> object.</p><h2>Querying For Geolocation&nbsp;Information</h2><pre class="js">
if(navigator.geolocation) {
	navigator.geolocation.getCurrentPosition(function(position) {
		alert('Your lat-long is: ' + position.coords.latitude + ' / ' + position.coords.longitude);
		alert('You live in ' + position.address.city + ', ' + position.address.state)
	});
}
</pre><p>The <span
class="function">navigator.geolocation.getCurrentPosition</span> method is the driving force behind retrieving location details.  Once you call this method (providing it a function which will execute if your request is successful), the browser will ask the user if they will allow you to retrieve their location information:</p><a
href="http://davidwalsh.name/dw-content/geolocation.php"><img
src="http://davidwalsh.name/dw-content/geolocationbar.jpg" alt="Mozilla Firefox Geolocation Permissions" class="image" /></a><p>When the user allows the website to retrieve their location information, Firefox fetches the information, providing you a position object with two very useful attributes: <span
class="function">position.coords</span> and <span
class="function">position.address</span>. <span
class="function">position.coords</span> gives you latitude and longitude while position.address gives you streetNumber, street, premises, city, county, region, country, countryCode, and postalCode.  Firefox may even take a picture of your user through his/her window soon. <em>(Editor&#8217;s note:  I completely made that up)</em></p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/geolocation.php" class="demo">View Demo</a><div
class="clear"></div></div><p>Of course most of this functionality is only available within Firefox. <a
href="http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/GettingGeographicalLocations/GettingGeographicalLocations.html" rel="nofollow">Safari</a> will retrieve the user&#8217;s latitude and longitude but that&#8217;s the extent of WebKit&#8217;s support.  I look forward to bigger and better things from the W3C&#8217;s Geolocation API in the future!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/geolocation-api">Using Firefox&#8217;s Geolocation&nbsp;API</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/detect-iphone' rel='bookmark' title='Permanent Link: iPhone &#038; iPod Detection Using&nbsp;JavaScript'>iPhone &#038; iPod Detection Using&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/favorite-link-create-bookmark-link' rel='bookmark' title='Permanent Link: &#8220;Favorite&#8221; Link &#8212; How To Create a Bookmark&nbsp;Link'>&#8220;Favorite&#8221; Link &#8212; How To Create a Bookmark&nbsp;Link</a></li><li><a
href='http://davidwalsh.name/firefox-plugins' rel='bookmark' title='Permanent Link: My Firefox&nbsp;Plugins'>My Firefox&nbsp;Plugins</a></li><li><a
href='http://davidwalsh.name/html5-storage' rel='bookmark' title='Permanent Link: Using HTML5 Web&nbsp;Storage'>Using HTML5 Web&nbsp;Storage</a></li><li><a
href='http://davidwalsh.name/detecting-google-chrome-javascript' rel='bookmark' title='Permanent Link: Detecting Google Chrome Using&nbsp;JavaScript'>Detecting Google Chrome Using&nbsp;JavaScript</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/geolocation-api/feed</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Prevent Page Zooming in Mobile&#160;Browsers</title><link>http://davidwalsh.name/zoom-mobile-browsers</link> <comments>http://davidwalsh.name/zoom-mobile-browsers#comments</comments> <pubDate>Mon, 14 Jun 2010 13:17:23 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Markup]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4987</guid> <description><![CDATA[Ever since I got my iPhone, I&#8217;ve been more agreeable in going places that my fiancee wants to go. It&#8217;s not because I have any interest in checking out women&#8217;s shoes, looking at flowers, or that type of stuff &#8212; it&#8217;s because my iPhone lets me surf the web the whole time&#8230;or until my iPhone&#8217;s [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/zoom-mobile-browsers">Prevent Page Zooming in Mobile&nbsp;Browsers</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/automatically-refresh-page-javascript-meta-tags' rel='bookmark' title='Permanent Link: Automatically Refresh a Page Using JavaScript or Meta&nbsp;Tags'>Automatically Refresh a Page Using JavaScript or Meta&nbsp;Tags</a></li><li><a
href='http://davidwalsh.name/iphone-thoughts' rel='bookmark' title='Permanent Link: iPhone'>iPhone</a></li><li><a
href='http://davidwalsh.name/meta-refresh-javascript' rel='bookmark' title='Permanent Link: META Refresh vs. JavaScript&nbsp;Refresh'>META Refresh vs. JavaScript&nbsp;Refresh</a></li><li><a
href='http://davidwalsh.name/peel-effect' rel='bookmark' title='Permanent Link: Page Peel Effect Using&nbsp;MooTools'>Page Peel Effect Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/css-transformations' rel='bookmark' title='Permanent Link: Sexy Link Transformations with&nbsp;CSS'>Sexy Link Transformations with&nbsp;CSS</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Ever since I got my iPhone, I&#8217;ve been more agreeable in going places that my fiancee wants to go.  It&#8217;s not because I have any interest in checking out women&#8217;s shoes, looking at flowers, or that type of stuff &#8212; it&#8217;s because my iPhone lets me surf the web the whole time&#8230;or until my iPhone&#8217;s tiny battery dies.  It wasn&#8217;t until recently that I noticed that some sites don&#8217;t allow the user to zoom in and out of a page.  After some research I found that preventing page zooming was as easy as adding a META tag to the page.</p><h2>The META HTML&nbsp;Tag</h2><pre class="html">
&lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/&gt; &lt;!--320--&gt;
</pre><p>That&#8217;s as easy as it gets.  According to <a
href="https://developer.mozilla.org/en/Mobile/Viewport_meta_tag">Mozilla</a>, mobile browsers are generally set to a size of 320 or 480.  The maximum scale keeps the scale settings when the user switches from portrait to landscape view.</p><p>If you&#8217;d like to see this in action, grab your phone/mobile browser and hit:</p><p><a
href="http://davidwalsh.name/dw-content/mobile-viewport.php" class="function">http://davidwalsh.name/zoom-mobile-browsers</a></p><p>I&#8217;m not huge fan of preventing the user from enhancing their experience but your web application may need to stay a given size.  Now you know how to do so!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/zoom-mobile-browsers">Prevent Page Zooming in Mobile&nbsp;Browsers</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/automatically-refresh-page-javascript-meta-tags' rel='bookmark' title='Permanent Link: Automatically Refresh a Page Using JavaScript or Meta&nbsp;Tags'>Automatically Refresh a Page Using JavaScript or Meta&nbsp;Tags</a></li><li><a
href='http://davidwalsh.name/iphone-thoughts' rel='bookmark' title='Permanent Link: iPhone'>iPhone</a></li><li><a
href='http://davidwalsh.name/meta-refresh-javascript' rel='bookmark' title='Permanent Link: META Refresh vs. JavaScript&nbsp;Refresh'>META Refresh vs. JavaScript&nbsp;Refresh</a></li><li><a
href='http://davidwalsh.name/peel-effect' rel='bookmark' title='Permanent Link: Page Peel Effect Using&nbsp;MooTools'>Page Peel Effect Using&nbsp;MooTools</a></li><li><a
href='http://davidwalsh.name/css-transformations' rel='bookmark' title='Permanent Link: Sexy Link Transformations with&nbsp;CSS'>Sexy Link Transformations with&nbsp;CSS</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/zoom-mobile-browsers/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Image onLoad Event + JavaScript Issue with Internet&#160;Explorer</title><link>http://davidwalsh.name/image-load-event</link> <comments>http://davidwalsh.name/image-load-event#comments</comments> <pubDate>Thu, 10 Jun 2010 13:58:08 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[MooTools]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4986</guid> <description><![CDATA[I was recently coding an application that would inject an image into the page and then execute a given function when the image&#8217;s onLoad event fires. My code was working everywhere except Internet Explorer. That wasn&#8217;t all together shocking initially but the fact that even IE8 was failing to the fire the onLoad event was [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/image-load-event">Image onLoad Event + JavaScript Issue with Internet&nbsp;Explorer</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/css-image-filters-internet-explorer' rel='bookmark' title='Permanent Link: CSS Image Filters in Internet&nbsp;Explorer'>CSS Image Filters in Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/internet-explorer-cannot-open-internet-site' rel='bookmark' title='Permanent Link: IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;'>IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;</a></li><li><a
href='http://davidwalsh.name/prevent-internet-explorers-default-image-dragging-action' rel='bookmark' title='Permanent Link: Prevent Internet Explorer&#8217;s Default Image Dragging&nbsp;Action'>Prevent Internet Explorer&#8217;s Default Image Dragging&nbsp;Action</a></li><li><a
href='http://davidwalsh.name/javascript-domready' rel='bookmark' title='Permanent Link: DomReady Event Methods in JavaScript&nbsp;Frameworks'>DomReady Event Methods in JavaScript&nbsp;Frameworks</a></li><li><a
href='http://davidwalsh.name/rounded-corners-ie' rel='bookmark' title='Permanent Link: Rounded Corners in Internet&nbsp;Explorer'>Rounded Corners in Internet&nbsp;Explorer</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I was recently coding an application that would inject an image into the page and then execute a given function when the image&#8217;s onLoad event fires.  My code was working everywhere <em>except</em> Internet Explorer.  That wasn&#8217;t all together shocking initially but the fact that even IE8 was failing to the fire the onLoad event was discouraging.  Here&#8217;s what my code looked like:</p><pre class="js">
var img = new Element('img',{
	alt: this.title ? this.title.get('html') : this.options.url,
	src: this.options.url,
	events: {
		error: function() {
			this.messageBox.set('html',this.options.errorMessage);
			img.dispose();
		}.bind(this),
		load: function() {
			img.setStyle('display','');
			this.unfade();
			if(!this.footer) {
				img.setStyle('cursor','pointer').addEvent('click',this.close.bind(this));
			}
		}.bind(this)
	},
	styles: {
		display: 'none'
	}
}).inject(this.messageBox);
</pre><p>On a hunch I detached the &#8220;src&#8221; assignment and coded that as a separate statement:</p><pre class="js">
var img = new Element('img',{
	alt: this.title ? this.title.get('html') : this.options.url,
	events: {
		error: function() {
			this.messageBox.set('html',this.options.errorMessage);
			img.dispose();
		}.bind(this),
		load: function() {
			img.setStyle('display','');
			this.unfade();
			if(!this.footer) {
				img.setStyle('cursor','pointer').addEvent('click',this.close.bind(this));
			}
		}.bind(this)
	},
	styles: {
		display: 'none'
	}
});
img.set('src',this.options.url).inject(this.messageBox); //for ie
</pre><p>Not too surprisingly that worked.  The reason my modification worked is that image was being pulled from cache as soon as the SRC attribute was set, thus &#8220;beating&#8221; the event assignment to the punch.  Keep this in mind if you run into onLoad issues with your images.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/image-load-event">Image onLoad Event + JavaScript Issue with Internet&nbsp;Explorer</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/css-image-filters-internet-explorer' rel='bookmark' title='Permanent Link: CSS Image Filters in Internet&nbsp;Explorer'>CSS Image Filters in Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/internet-explorer-cannot-open-internet-site' rel='bookmark' title='Permanent Link: IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;'>IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;</a></li><li><a
href='http://davidwalsh.name/prevent-internet-explorers-default-image-dragging-action' rel='bookmark' title='Permanent Link: Prevent Internet Explorer&#8217;s Default Image Dragging&nbsp;Action'>Prevent Internet Explorer&#8217;s Default Image Dragging&nbsp;Action</a></li><li><a
href='http://davidwalsh.name/javascript-domready' rel='bookmark' title='Permanent Link: DomReady Event Methods in JavaScript&nbsp;Frameworks'>DomReady Event Methods in JavaScript&nbsp;Frameworks</a></li><li><a
href='http://davidwalsh.name/rounded-corners-ie' rel='bookmark' title='Permanent Link: Rounded Corners in Internet&nbsp;Explorer'>Rounded Corners in Internet&nbsp;Explorer</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/image-load-event/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Test For Popup Blocker Using&#160;JavaScript</title><link>http://davidwalsh.name/popup-block-javascript</link> <comments>http://davidwalsh.name/popup-block-javascript#comments</comments> <pubDate>Tue, 12 Jan 2010 14:46:53 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[JavaScript]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4608</guid> <description><![CDATA[Several websites rely on the ever-so-annoying popup window. As much as well all hate popup windows, some websites do benefit and justly require them. The problem is that some people have their popup blocker on but don&#8217;t know it &#8212; thus the new window doesn&#8217;t open. Of course the browser notifies the user but it [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/popup-block-javascript">Test For Popup Blocker Using&nbsp;JavaScript</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/nsfw-blocker-mootools-css' rel='bookmark' title='Permanent Link: NSFW Blocker Using MooTools and&nbsp;CSS'>NSFW Blocker Using MooTools and&nbsp;CSS</a></li><li><a
href='http://davidwalsh.name/create-javascript-close-link' rel='bookmark' title='Permanent Link: How To Create A JavaScript Close&nbsp;Link'>How To Create A JavaScript Close&nbsp;Link</a></li><li><a
href='http://davidwalsh.name/firebug-console-log' rel='bookmark' title='Permanent Link: Logging Information to the Firebug JavaScript&nbsp;Console'>Logging Information to the Firebug JavaScript&nbsp;Console</a></li><li><a
href='http://davidwalsh.name/create-javascript-print-link' rel='bookmark' title='Permanent Link: How To Create A JavaScript Print&nbsp;Link'>How To Create A JavaScript Print&nbsp;Link</a></li><li><a
href='http://davidwalsh.name/javascript-set-homepage-link' rel='bookmark' title='Permanent Link: Creating a JavaScript &#8220;Set As Homepage&#8221;&nbsp;Link'>Creating a JavaScript &#8220;Set As Homepage&#8221;&nbsp;Link</a></li></ol>]]></description> <content:encoded><![CDATA[<img
src="http://davidwalsh.name/dw-content/popups.jpg" alt="Popup Window"  class="image" /><p>Several websites rely on the ever-so-annoying popup window.  As much as well all hate popup windows, some websites do benefit and justly require them.  The problem is that some people have their popup blocker on but don&#8217;t know it &#8212; thus the new window doesn&#8217;t open.  Of course the browser notifies the user but it isn&#8217;t always as obvious as it should be.  Here&#8217;s a quick method for testing if your popup window is being blocked.</p><h2>The&nbsp;JavaScript</h2><pre class="js">
var windowName = 'userConsole'; 
var popUp = window.open('/popup-page.php', windowName, 'width=1000, height=700, left=24, top=24, scrollbars, resizable');
if (popUp == null || typeof(popUp)=='undefined') { 	
	alert('Please disable your pop-up blocker and click the "Open" link again.'); 
} 
else { 	
	popUp.focus();
}
</pre><p>The first step is to give the directive to open a new window, saving what&#8217;s returned.  Then we check to see if the object exists.  If it does, we&#8217;re good.  If it doesn&#8217;t, we give an alert to the user that their popup blocker may be on.  The specific text warning can be set to whatever you&#8217;d like, as could the method of giving them the message.  You could also use a <a
href="http://davidwalsh.name/toggle-slider-mootools">sexy MooTools slider</a> to show the message.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/popup-block-javascript">Test For Popup Blocker Using&nbsp;JavaScript</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/nsfw-blocker-mootools-css' rel='bookmark' title='Permanent Link: NSFW Blocker Using MooTools and&nbsp;CSS'>NSFW Blocker Using MooTools and&nbsp;CSS</a></li><li><a
href='http://davidwalsh.name/create-javascript-close-link' rel='bookmark' title='Permanent Link: How To Create A JavaScript Close&nbsp;Link'>How To Create A JavaScript Close&nbsp;Link</a></li><li><a
href='http://davidwalsh.name/firebug-console-log' rel='bookmark' title='Permanent Link: Logging Information to the Firebug JavaScript&nbsp;Console'>Logging Information to the Firebug JavaScript&nbsp;Console</a></li><li><a
href='http://davidwalsh.name/create-javascript-print-link' rel='bookmark' title='Permanent Link: How To Create A JavaScript Print&nbsp;Link'>How To Create A JavaScript Print&nbsp;Link</a></li><li><a
href='http://davidwalsh.name/javascript-set-homepage-link' rel='bookmark' title='Permanent Link: Creating a JavaScript &#8220;Set As Homepage&#8221;&nbsp;Link'>Creating a JavaScript &#8220;Set As Homepage&#8221;&nbsp;Link</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/popup-block-javascript/feed</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>Rounded Corners in Internet&#160;Explorer</title><link>http://davidwalsh.name/rounded-corners-ie</link> <comments>http://davidwalsh.name/rounded-corners-ie#comments</comments> <pubDate>Wed, 28 Oct 2009 12:38:00 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Microsoft]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4074</guid> <description><![CDATA[One of the reasons that I love Firefox and Webkit-based browsers (Chrome, Safari) is the ability to effortlessly create rounded-corner elements using pure CSS: .round { -moz-border-radius:12px; -webkit-border-radius:12px; } As you probably already know, IE doesn&#8217;t allow you to create rounded corners without using images or endless hacking. Enter the CurvyCorners JavaScript project. CurvyCorners allows [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/rounded-corners-ie">Rounded Corners in Internet&nbsp;Explorer</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/rounded-corners-webkit' rel='bookmark' title='Permanent Link: Rounded Corners in&nbsp;Webkit'>Rounded Corners in&nbsp;Webkit</a></li><li><a
href='http://davidwalsh.name/rounded-corners-firefox' rel='bookmark' title='Permanent Link: Rounded Corners in Mozilla&nbsp;Firefox'>Rounded Corners in Mozilla&nbsp;Firefox</a></li><li><a
href='http://davidwalsh.name/internet-explorer-cannot-open-internet-site' rel='bookmark' title='Permanent Link: IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;'>IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;</a></li><li><a
href='http://davidwalsh.name/image-load-event' rel='bookmark' title='Permanent Link: Image onLoad Event + JavaScript Issue with Internet&nbsp;Explorer'>Image onLoad Event + JavaScript Issue with Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/chrome-frame' rel='bookmark' title='Permanent Link: Turn Internet Explorer into Chrome with Chrome&nbsp;Frame'>Turn Internet Explorer into Chrome with Chrome&nbsp;Frame</a></li></ol>]]></description> <content:encoded><![CDATA[<a
href="http://davidwalsh.name/dw-content/curvy-corners.php"><img
src="http://davidwalsh.name/dw-content/roundedcorners.png" alt="Rounded Corners" /></a><br
/><p>One of the reasons that I love Firefox and Webkit-based browsers (Chrome, Safari) is the ability to effortlessly create rounded-corner elements using pure CSS:</p><pre class="css">
.round	{ -moz-border-radius:12px; -webkit-border-radius:12px; }
</pre><p>As you probably already know, IE doesn&#8217;t allow you to create rounded corners without using images or endless hacking.  Enter the <a
href="http://code.google.com/p/curvycorners">CurvyCorners JavaScript project</a>.  CurvyCorners allows you to quickly create rounded corners within Internet Explorer.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/curvy-corners.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>The CurvyCorners&nbsp;JavaScript</h2><pre class="html">
&lt;!-- SIMPLY INCLUDE THE JS FILE! --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;curvy.corners.trunk.js&quot;&gt;&lt;/script&gt;
</pre><p>CurvyCorners detects the usage of &#8220;-webkit-border-radius&#8221; and &#8220;moz-border-radius&#8221; on DOM elements and works its magic to duplicate the effect in IE using a series of small DIVs.  There are no images involved.  You may also identify specific elements to apply rounded corners to:</p><pre class="js">
var settings = {
			tl: { radius: 12 },
			tr: { radius: 12 },
			bl: { radius: 12 },
			br: { radius: 12 },
			antiAlias: true
		 };
/* moooo */
$$('.round').each(function(rd) {
	curvyCorners(settings,rd);
});
</pre><h2>MooTools  + Curvy&nbsp;Corners</h2><p>CurvyCorners is known to brick your MooTools code.  The <a
href="http://code.google.com/p/curvycorners/source/browse/#svn/trunk/examples">trunk code</a> fixes those issues.</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/curvy-corners.php" class="demo">View Demo</a><div
class="clear"></div></div><p>Don&#8217;t let Internet Explorer&#8217;s refusal to implement rounded corners via CSS keep your websites from being as dynamic as possible!  CurvyCorners helps make rounded corners in IE possible!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/rounded-corners-ie">Rounded Corners in Internet&nbsp;Explorer</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/rounded-corners-webkit' rel='bookmark' title='Permanent Link: Rounded Corners in&nbsp;Webkit'>Rounded Corners in&nbsp;Webkit</a></li><li><a
href='http://davidwalsh.name/rounded-corners-firefox' rel='bookmark' title='Permanent Link: Rounded Corners in Mozilla&nbsp;Firefox'>Rounded Corners in Mozilla&nbsp;Firefox</a></li><li><a
href='http://davidwalsh.name/internet-explorer-cannot-open-internet-site' rel='bookmark' title='Permanent Link: IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;'>IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;</a></li><li><a
href='http://davidwalsh.name/image-load-event' rel='bookmark' title='Permanent Link: Image onLoad Event + JavaScript Issue with Internet&nbsp;Explorer'>Image onLoad Event + JavaScript Issue with Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/chrome-frame' rel='bookmark' title='Permanent Link: Turn Internet Explorer into Chrome with Chrome&nbsp;Frame'>Turn Internet Explorer into Chrome with Chrome&nbsp;Frame</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/rounded-corners-ie/feed</wfw:commentRss> <slash:comments>49</slash:comments> </item> <item><title>Turn Internet Explorer into Chrome with Chrome&#160;Frame</title><link>http://davidwalsh.name/chrome-frame</link> <comments>http://davidwalsh.name/chrome-frame#comments</comments> <pubDate>Wed, 23 Sep 2009 02:00:59 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[Microsoft]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=3787</guid> <description><![CDATA[I&#8217;m just going to cut to the chase: Internet Explorer is rubbish. I don&#8217;t care what version you throw at me &#8212; 6, 7, 8&#8230;rubbish. Apparently Google agrees with me because they&#8217;ve released Google Chrome Frame, a browser plugin and META tag system that allows you to turn IE installs into a virtual &#8220;Chrome&#8221; install [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/chrome-frame">Turn Internet Explorer into Chrome with Chrome&nbsp;Frame</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/impressions-google-chrome' rel='bookmark' title='Permanent Link: First Impressions of Google&nbsp;Chrome'>First Impressions of Google&nbsp;Chrome</a></li><li><a
href='http://davidwalsh.name/internet-explorer-cannot-open-internet-site' rel='bookmark' title='Permanent Link: IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;'>IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;</a></li><li><a
href='http://davidwalsh.name/rounded-corners-ie' rel='bookmark' title='Permanent Link: Rounded Corners in Internet&nbsp;Explorer'>Rounded Corners in Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/css-image-filters-internet-explorer' rel='bookmark' title='Permanent Link: CSS Image Filters in Internet&nbsp;Explorer'>CSS Image Filters in Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/detecting-google-chrome-javascript' rel='bookmark' title='Permanent Link: Detecting Google Chrome Using&nbsp;JavaScript'>Detecting Google Chrome Using&nbsp;JavaScript</a></li></ol>]]></description> <content:encoded><![CDATA[<img
src="http://davidwalsh.name/dw-content/chrome-logo.png" alt="Google Chrome" class="image" /><p>I&#8217;m just going to cut to the chase:  Internet Explorer is rubbish.  I don&#8217;t care what version you throw at me &#8212; 6, 7, 8&#8230;rubbish.  Apparently Google agrees with me because they&#8217;ve released Google Chrome Frame, a browser plugin and META tag system that allows you to turn IE installs into a virtual &#8220;Chrome&#8221; install so that IE will support HTML5&#8242;s canvas tag and take advantage of JavaScript performance improvements featured in Google Chrome.</p><h2>Step 1:  The&nbsp;Plugin</h2><p>The user must first download the Chrome Frame plugin at the <a
href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame page</a>.  The install works on XP and Vista operating systems, IE browser versions 6, 7, and 8.</p><h2>Step 2:  The HTML META&nbsp;tag</h2><p>To activate Chromified Internet Explorer you must add the following META tag to your pages:</p><pre class="html">
&lt;meta http-equiv="X-UA-Compatible" content="chrome=1" /&gt;
</pre><p>That&#8217;s it!  Check out a demo here:</p><div
class="actions"><a
href="http://davidwalsh.name/dw-content/chrome-frame.php" class="demo">View Demo</a><div
class="clear"></div></div><h2>More&nbsp;Details</h2><p>Jump over to the <a
href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame page</a> to get more details about this project.  There&#8217;s a great video featuring Alex Russell (of Dojo fame) where he explains the reason for Chrome Frame and usage.</p><h2>Our&nbsp;Savior?</h2><p>I don&#8217;t believe so.  There are two big problems I see:</p><ul><li>Most IT teams are keeping their businesses employees in the dark world of IE6.  Chrome Frame would be a great solution for employees looking to get with the 90&#8242;s but how many businesses give their employees proper permissions to install applications?  No many.</li><li>Users who don&#8217;t know the difference wont put an effort into downloading this plugin (i.e. my grandmother doesn&#8217;t even know what a browser is, much less IE and why it&#8217;s bad).</li></ul><h2>Thoughts?</h2><p>I&#8217;m very interested in seeing what you all think of this.  Crap?  Gold?  Let me know what you think!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/chrome-frame">Turn Internet Explorer into Chrome with Chrome&nbsp;Frame</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/impressions-google-chrome' rel='bookmark' title='Permanent Link: First Impressions of Google&nbsp;Chrome'>First Impressions of Google&nbsp;Chrome</a></li><li><a
href='http://davidwalsh.name/internet-explorer-cannot-open-internet-site' rel='bookmark' title='Permanent Link: IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;'>IE Says &#8220;Internet Explorer cannot open the Internet Site ________. Operation Aborted.&#8221;  I Say&nbsp;&#8220;WTF?&#8221;</a></li><li><a
href='http://davidwalsh.name/rounded-corners-ie' rel='bookmark' title='Permanent Link: Rounded Corners in Internet&nbsp;Explorer'>Rounded Corners in Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/css-image-filters-internet-explorer' rel='bookmark' title='Permanent Link: CSS Image Filters in Internet&nbsp;Explorer'>CSS Image Filters in Internet&nbsp;Explorer</a></li><li><a
href='http://davidwalsh.name/detecting-google-chrome-javascript' rel='bookmark' title='Permanent Link: Detecting Google Chrome Using&nbsp;JavaScript'>Detecting Google Chrome Using&nbsp;JavaScript</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/chrome-frame/feed</wfw:commentRss> <slash:comments>38</slash:comments> </item> <item><title>iPhone Hath&#160;Cometh</title><link>http://davidwalsh.name/iphone-hath-cometh</link> <comments>http://davidwalsh.name/iphone-hath-cometh#comments</comments> <pubDate>Wed, 08 Jul 2009 00:43:32 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Browsers]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=3115</guid> <description><![CDATA[If you follow me on Twitter or talk to me my IRC channel (#davidwalshblog on FreeNode), you know that I&#8217;ve been anticipating my birthday because BDay was iDay &#8212; iPhone day, that is. My birthday has come and gone and I now possess a slick iPhone 3Gs. I absolutely love it so far but just [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/iphone-hath-cometh">iPhone Hath&nbsp;Cometh</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/iphone-thoughts' rel='bookmark' title='Permanent Link: iPhone'>iPhone</a></li><li><a
href='http://davidwalsh.name/detect-iphone' rel='bookmark' title='Permanent Link: iPhone &#038; iPod Detection Using&nbsp;JavaScript'>iPhone &#038; iPod Detection Using&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/iphone-password' rel='bookmark' title='Permanent Link: iPhone-Style Passwords Using MooTools&nbsp;PassShark'>iPhone-Style Passwords Using MooTools&nbsp;PassShark</a></li><li><a
href='http://davidwalsh.name/iphone-click' rel='bookmark' title='Permanent Link: iPhone Click Effect Using MooTools or&nbsp;jQuery'>iPhone Click Effect Using MooTools or&nbsp;jQuery</a></li><li><a
href='http://davidwalsh.name/script-style-twitter' rel='bookmark' title='Permanent Link: Follow Script &#038; Style on&nbsp;Twitter!'>Follow Script &#038; Style on&nbsp;Twitter!</a></li></ol>]]></description> <content:encoded><![CDATA[<img
src="http://davidwalsh.name/dw-content/iphone-front.jpg" alt="iPhone" class="image" /><p>If you <a
href="http://twitter.com/davidwalshblog">follow me on Twitter</a> or talk to me my <a
href="http://davidwalsh.name/chat">IRC channel (#davidwalshblog on FreeNode)</a>, you know that I&#8217;ve been anticipating my birthday because BDay was iDay &#8212; iPhone day, that is.  My birthday has come and gone and I now possess a slick iPhone 3Gs.  I absolutely love it so far but just like my limited Mac knowledge, I don&#8217;t know which iPhone apps I need to get.</p><h2>Here&#8217;s What I&#8217;ve Got So&nbsp;Far</h2><p>I was bright enough to grab these:</p><ul><li>Colloquy (mobiwalsh ftw!)</li><li>Dialer</li><li>Tweetie</li><li>ESPN ScoreCenter (I&#8217;m a guy)</li><li>Pandora</li><li>AroundMe</li><li>DIRECTV</li><li>Facebook</li><li>Remote</li><li>Shazam (which is 2 for 2 to this point)</li><li>Lightsaber (couldn&#8217;t pass it up)</li><li>TMZ (I&#8217;m a celebrity gossip addict)</li><li>GolfCard</li></ul><h2>HELP!!</h2><p>You have more experience with your iPhone than I do.  Please share with me any tips you have, any apps you tried and love, or apps that you think will ruin my life.</p><p>I&#8217;m excited to hear and learn from you!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/iphone-hath-cometh">iPhone Hath&nbsp;Cometh</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/iphone-thoughts' rel='bookmark' title='Permanent Link: iPhone'>iPhone</a></li><li><a
href='http://davidwalsh.name/detect-iphone' rel='bookmark' title='Permanent Link: iPhone &#038; iPod Detection Using&nbsp;JavaScript'>iPhone &#038; iPod Detection Using&nbsp;JavaScript</a></li><li><a
href='http://davidwalsh.name/iphone-password' rel='bookmark' title='Permanent Link: iPhone-Style Passwords Using MooTools&nbsp;PassShark'>iPhone-Style Passwords Using MooTools&nbsp;PassShark</a></li><li><a
href='http://davidwalsh.name/iphone-click' rel='bookmark' title='Permanent Link: iPhone Click Effect Using MooTools or&nbsp;jQuery'>iPhone Click Effect Using MooTools or&nbsp;jQuery</a></li><li><a
href='http://davidwalsh.name/script-style-twitter' rel='bookmark' title='Permanent Link: Follow Script &#038; Style on&nbsp;Twitter!'>Follow Script &#038; Style on&nbsp;Twitter!</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/iphone-hath-cometh/feed</wfw:commentRss> <slash:comments>25</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 142/392 queries in 3.917 seconds using disk

Served from: davidwalsh.name @ 2010-09-02 23:31:28 -->