Agile Development Practices suggest developers keep a solutions log. I think we can all benefit from a combined solutions log. As I encounter errors or problems I intend to record the solutions on this blog. Please feel to leave your comments, solutions and email me with your errors and solutions.
May 14, 2014
Jul 14, 2013
Jul 8, 2013
Solved: Outlook keeps asking for credentials
Open the windows credential manager and delete the credentials for the user that is experiencing the issue.
Apr 4, 2013
Current most used JS pattern
var myObject = (function () {
// private variables
var ajaxUrl = '/path/to/ajax.html',
selectorObj,
// public variables
obj = {};
obj.publicVar = '';
// private methods
setupEventHandlers = function () {
};
// public methods
obj.init = function () {
setupEventHandlers();
};
return obj;
}());
$(function () {
myObject.init();
});
Javascript AJAX Wrapper
AJAX Wrapper
var AJAXWrapper = {
getData: function (ajaxObject) {
var dfr = $.Deferred();
ajaxObject.success = dfr.resolve;
$.ajax(ajaxObject).error(function () {
alert('Error with AJAX request');
});
return dfr.promise();
}
};
Usage
var ajaxObject = {
url: "/path/to/data.html",
data: { email: "my@email.com" },
dataType: 'html'
};
AJAXWrapper.getData(ajaxObject).then(function (data) {
console.log(data);
});
Apr 2, 2013
Dec 21, 2012
Nov 19, 2012
WordPress: Update URL or Domain
Update (or add) the following lines to the code to the wp-config.php file:
- define("WP_SITEURL","desired url address");
- define("WP_HOME","desired url address");
Sep 27, 2012
A developers life changing blog post
Please stop
embedding Bootstrap classes in your HTML!
http://ruby.bvision.com/blog/please-stop-embedding-bootstrap-classes-in-your-html
Sep 25, 2012
jQuery Deferred & Promise
Good article on using jQuery deferred & promise with ajax calls:
http://www.intridea.com/blog/2011/2/8/fun-with-jquery-deferred#
http://www.intridea.com/blog/2011/2/8/fun-with-jquery-deferred#
Subscribe to:
Posts (Atom)