How to set the HTTP Header for a request using AngularJs

To set the HTTP Header for a request using AngularJs you can use the following snippet.

$http({method: 'GET', url: 'www.fesslersoftexample.com/api', headers: {
    'Authorization': 'Basic YmVlcDpib29w'}
});

Use the headers parameter in the config object you pass to $http.

For more informations see the AngularJs API Reference

Please rate this snippet

How to remove the border of an IFrame

To Remove the Border of an IFrame you can use the snippet below.
Please note the capital B of frameBorder.

Sample HTML

<iframe src="IFRAME_URL" width="300" height="300" frameBorder="0">HERE IS A IFRAME</iframe>

if you are using HTML5 you should use the following snippet.

Sample HTML

seamless='seamless'

Please rate this snippet

How to check if the browser supports Html5 localStorage

To check if the browser supports Html5 localStorage you can use the following code snippet.

Sample Javascript

function IsSupportingHtml5Storage() {
    try {
        return 'localStorage' in window && window['localStorage'] !== null;
    } catch (ex) {
        return false;
    }
}

for more informations see W3Schools: HTML5 Web Storage

Please rate this snippet