Author Archives: admin

how to fix Issue with google chrome Version 28.0.1500.71 – CSS won’t load completely and have block spots on page

Recently I had a major issue with one of my websites with Google Chrome 28.0.1500.71 Most of the parts of the website wasn’t clickable and it had black spots on the pages.

The css line which cased the error

Google chrome crashes when there is a number in CSS with more than 7 digits.

Most of the time these type of huge numbers are z-index values or mine it was text-indent value. Avoid having numbers with more than 7 digits in your CSS as css property values to get rid of the crashing of chrome 28.0.1500.71

How to do $http POST with AngularJS in php

Doing a POST request in AngularJS is bit tricky. If you do it like below, you cannot access the POST variables with $_POST or $_REQUEST via php. With the below method, you can access POST variables only via file_get_contents();

How to get POST values with above method

The reason is, AngularJS doesn’t serialize the data ( parameters ) passed to the POST request automatically. Therefore we have to serialize the data with $.params() which is available in jQuery . Also the default content-type of the posted data is application/json. Therefore we need to override the Content-type headers of the post request to application/x-www-form-urlencoded in order to access the the posted values via $_POST or $_REQUEST

You can access POST values in above method as shown below.