Since $.Browser is deprecated and $.Support doesn't appear to provide a check for supported content types, what's the best way to deliver device specific content types?
Here are some valid examples;
Flash based content to desktop systems, alternate content to iPads. (Please no flames on Flash, it still has valid uses).
Ad-hoc iPad app installs where you would need an install link for iPad and a download link for other browsers.
This is what I'm currently using;
var agentMatch = navigator.userAgent.match(/(iPhone|iPod|iPad)/);
window.is_AppleMobile = (typeof(agentMatch) === 'undefined') || (agentMatch === null)?false:true;
Any thoughts?
Here are some valid examples;
Flash based content to desktop systems, alternate content to iPads. (Please no flames on Flash, it still has valid uses).
Ad-hoc iPad app installs where you would need an install link for iPad and a download link for other browsers.
This is what I'm currently using;
var agentMatch = navigator.userAgent.match(/(iPhone|iPod|iPad)/);
window.is_AppleMobile = (typeof(agentMatch) === 'undefined') || (agentMatch === null)?false:true;
Any thoughts?