Category: javascript

Javascript hostname and ip validate 0

Javascript hostname and ip validate

Validating hostname and IP occurs pretty often. This is what I use for a field that can contain both IPV4 or hostname : if (value.length === 0 || value.length > 511) { return "Address...

Supporting IE 8 0

Supporting IE 8

Why would anyone care about IE8 ? Well sometime we have to if our clients is still on it, and yes in 2015, there are groups in the federal business that still only use...

Create your own Chrome Extension 0

Create your own Chrome Extension

How to test your extension during development 1. Navigate to chrome://extensions 2. Click on "Load unpacked extension..." Troubleshooting Problem There were warnings when trying to install this extension: Permission '://.google.com' is unknown or URL...

Add GET parameter to a backbone fetch model 0

Add GET parameter to a backbone fetch model

Fetch model with GET parameters in URL The solution is to add data: $.param({ mySuperVariableName: 1}) in the fetch options. Folders.data.fetch( { data: $.param({ showContent: 1}), success:function(model, response, options) { //model.deferred.resolve(); }, error:function(model, response, options) {...