Detect IE version (prior to v9) in JavaScript

This is my preferred way of doing it. It gives maximum control. (Note: Conditional statements are only supported in IE5 – 9.) First set up your ie classes correctly <!DOCTYPE html> <!–[if lt IE 7]> <html class=”lt-ie9 lt-ie8 lt-ie7″> <![endif]–> <!–[if IE 7]> <html class=”lt-ie9 lt-ie8″> <![endif]–> <!–[if IE 8]> <html class=”lt-ie9″> <![endif]–> <!–[if gt … Read more

Why do all browsers’ user agents start with “Mozilla/”?

It is a long and sad story. In summary: Mozilla browser gets released, with User-Agent Mozilla/1.0 (Win3.1). It is publicly renamed to Netscape, but in its User-Agent it keeps its original name . Internet Explorer is released. It spoofs Netscape by starting its User-Agent with Mozilla/ because web servers were routinely browser sniffing and serving … Read more

What is the purpose of the implicit grant authorization type in OAuth 2?

Here are my thoughts: The purpose of auth code + token in authorization code flow is that token and client secret will never be exposed to resource owner because they travel server-to-server. On the other side, implicit grant flow is for clients that are implemented entirely using javascript and are running in resource owner’s browser. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)