Read the documentation. CAREFULLY...

Today I spent one hour trying to figure out why I wasn't getting the right response from the AJAX call using jQuery. There were no JS errors, fake repository once called directly was giving me the response/data back but not using the AJAX.

Looking at the documentation, I tried different methods to resolve the issue, but without success. Finally my boss figured out what was wrong and it was the lamest mistake that I could possibly make. As usual, devil is in the details.

In my JS code I had:

$.ajax({
URL: $url,
success: function(data){...

instead of

$.ajax({
url: $url,
success: function(data){...

URL vs. url makes a difference. JS is case sensitive...

Got some comments or something to say? Feel free to express your thoughts on twitter, facebook, your blog or somewhere else...