Adam K Dean

Posts tagged with javascript

Ordering and filtering objects with ng-repeat

Published 26 March 2014 in archive with tags angular , javascript AngularJS allows you to iterate over collections using the ng-repeat directive. You have the ability to order and filter the collection, but this only works for arrays, not for objects. You'd think that you'd retain the functionality of arrays, considering the object is treated like one, but you don't. Continue reading …

Remove params from URL in JavaScript

Published 3 December 2013 in archive with tags regex , javascript Let us say the param we want to remove is session and our URL is http://www.example.com/?session=lasgfnasolgnasgn&id=500&other=100. We can remove it like so: Continue reading …

Simple prototype inheritance in JavaScript

Published 31 July 2013 in archive with tags oop , javascript This post is more of a snippet than an in-depth post; something for the future when I stop doing JS and probably forget everything. I do actually think my brain is like Homer's, whenever I learn something new, the old stuff seems to leak out! Continue reading …

Easily bypass Same Origin Policy

Published 3 July 2013 in archive with tags jquery , javascript , ajax , json If you've ever tried to use AJAX or an iFrame to load another website in javascript and been unable to, it will have been because of the Same Origin Policy. To quote Wikipedia: Continue reading …

Detect enter key hit using jQuery

Published 3 July 2013 in archive with tags jquery , javascript Just a little snippet today, for future reference more than anything. Continue reading …



Newer Page 2 of 3 Older