GET vs POST in Ajax

GET is designed for getting data from the server. POST (and lesser-known friends PUT and DELETE) are designed for modifying data on the server. A GET request should never cause data to be removed from an application. If you have a link you can click on with a GET to remove data, then Google spidering … Read more

Semantics and Structure of Name-Value Pairs

Thanks for this interesting question. There are few more things to consider here. What is a pair? Two elements together. So we need a tag for this. Let’s say it is pair tag. <pair></pair> The pair contains the key, and the corresponding value: <pair><key>keyname</key><value>value</value></pair> Then, we need to list the pairs: <pairlist> <pair><key>keyname</key><value>value</value></pair> <pair><key>keyname</key><value>value</value></pair> </pairlist> … Read more

Anchors inside headers, or vice versa – is there a different in relation to SEO? [closed]

Prior to HTML5: The anchor has to be inside the header, you cannot put a block-level element inside an anchor, and most browsers will not render it 100% reliably if you do. In HTML5: It doesn’t matter, use whichever one makes the most semantic sense. Likely the first one. Remember that if your document is … Read more

JavaScript: difference between a statement and an expression?

Are all statements also expressions? “Wherever JavaScript expects a statement, you can also write an expression. Such a statement is called an expression statement. The reverse does not hold: you cannot write a statement where JavaScript expects an expression. For example, an if statement cannot become the argument of a function.” This is comes from … Read more

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