Hi, folks –
Numerous people have written me asking if they could download the Live API Demo pages we’ve posted over at Hand Interactive. They wanted to be able to see the API calls in context within real HTML code.
Well, I had some free time today so I whipped up a suitable export of the web pages for general consumption. (In other words, I fixed all the relative links, removed the Google usage tracking codes, removed the server-side includes, etc., etc.)
There are a few important caveats to using the downloadable Live API Demo Pages…
- Please keep in mind that it’s not the cleanest of HTML code since it was originally created for my internal use only.
- The web page is based on a free web design template I downloaded from DCarter Design. Please visit the DCarter Design site for more information on re-using their design template resources, including the style sheets, image resources, etc.
- Due to the effort involved in updating the regular Live API Demo pages and then porting those updates to the cleaned up, downloadable file set, I can’t guarantee that the downloaded Live API Demo pages will be 100% up to date with the latest API changes. But that’s okay. It’ll still be good enough for you to review the techniques we used and figure out how to apply them to your own needs.
API SAMPLE FILES
We’ve also prepared a couple of extremely basic samples which you can download to study and learn more about how easy it is to integrate MobileESP into your web site. This blog post explains a little more about the downloadable samples.
Hi, folks –
These examples illustrate how easy it is to include MobileESP code in your web page, do a quick detect, then do something interesting. For example, some of the things you might want to do include:
- Turn on & off features.
- Optimize pictures, videos, and other multimedia content for a specific platform. For example, dynamically replace a Flash video with an H.234 video file for iOS devices.
- Show a platform-specific notice or ad. For example, “You’re on a Windows Phone 7 device? Download our new app!”
- Redirect a device to an alternate version of the web page.
- If it’s an iPhone Tier device (including iPod Touch, Android, WebOS, etc.), it’ll redirect to a basic web page saying, “iPhone Tier.”
- If it’s any other mobile device (including BlackBerries, Windows Phone 7, PalmOS, and most feature phones), it’ll redirect to a web page saying, “Generic Mobile Page.”
- All other devices will fall through the above filters to land on a page saying, “Hi! I’m a Desktop page!”
See a live demo of the MobileESP samples in action.
Hi, folks –
I also updated the DetectTierTablet() method to include support for the WebOS tablets.
Thank you also to the multiple folks who wrote me about the syntax error in the detectTierRichCss() method in the Java library. Sorry about that!