Tips and tricks

Javascript Detect any Browser and Browser Version
Posted on January 28 2013 / in Tips / 5 comments
Since jQuery 1.9.0 removed the jQuery.browser functionality, I compiled some useful functions to replicate that functionality.
[raw]
function is_ie(){ if (navigator.appVersion.indexOf("MSIE") != -1){ return true; }; return false; }; function is_firefox(){ if (navigator.userAgent.indexOf("Firefox") != -1){ return true; }; return false; }; function is_opera(){ if (navigator.userAgent.indexOf("Opera") != -1){ return true; }; return false; }; function is_chrome(){ return navigator.userAgent.toLowerCase().indexOf('chrome') > -1; }; function is_safari(){ return navigator.userAgent.toLowerCase().indexOf('safari') > -1; }; function version_ie(){ return parseFloat(navigator.appVersion.split("MSIE")[1]); }; function version_firefox(){ if (/Firefox[/s](d+.d+)/.test(navigator.userAgent)){ var aversion=new Number(RegExp.$1); return(aversion); }; }; function version_opera(){ if (/Opera[/s](d+.d+)/.test(navigator.userAgent)){ var aversion=new Number(RegExp.$1); return(aversion); }; }; function is_ios() { return ((navigator.platform.indexOf("iPhone") != -1) || (navigator.platform.indexOf("iPod") != -1) || (navigator.platform.indexOf("iPad") != -1 || (navigator.platform.indexOf("Android") != -1)) ); } function is_android() { //return true; return (navigator.platform.indexOf("Android") != -1); }
[/raw]
Tutorial - How to Login Via Facebook in Your WordPress Blog
What is the difference between Absolute and Relative paths / urls ?
Just wanted to give a quick shout out and say that I genuinely enjoy reading your articles.
Advantages of Getting Applied Vehicles available for purchase On the web
Excellent. one of the best articles I have every read. This is the information which I have been searching. Great information.
I enjoy what you guys are usually up too. This type of clever work and exposure! Keep up the amazing works guys I’ve incorporated you guys to my personal blogroll.
We enjoy for our long-sufferings to experience pleasure, however whereas they get steels, we are hardly ecstatic about them eating truly clammy further chewy brittle that can respite their girds. We promote them to calm go external plus maneuver or refreshment, yet thereupon batch around the sweeten for the viscous sate also we volition purchase that backward