Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Geolocation Hacks > Hack 63. Polyfill Geolocation APIs with Webshims

Hack 63. Polyfill Geolocation APIs with Webshims

Often, web application developers are tasked with achieving cross-browser compliance with the functionality they are targeting within an application. The Geolocation API is not available natively in IE 8 and earlier, but there are alternative polyfills, such as webshims, that you can use to get the job done.

I have included polyfill hacks throughout this book. For a general overview of the problem that polyfills solve, read the introduction to [Hack #55]. For this hack I will assume you are familiar with Modernizr and YepNope.js.

To get started we will include our dependencies:

<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>

<script 

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint