Loading JSON From Rails with jQuery, Avoiding 406 Error

First of all I should point out that I'm quite new to Rails (and jQuery) and the interactions between it and JQuery, which may be the reason that some of you may consider this a rather basic hint.
However whilst working on membermeister.com I've recently had some trouble loading JSON data from our Rails backend. It seemed like a very trivial task at first, all we needed was a GET request that was answered by a format.json response from the Rails controller.

Simplified the request looked something like this:

view plain
2    url: "/invoices/" + invoiceid + "/pay",
3    type: "GET"

However Rails was returning a '406 Not Acceptable' error, suggesting the request I was sending was not something it was instructed to handle.

› Read Full Article

2012 - Onwards And Upwards

As 2011 is drawing to a close (seriously, where has this year gone?) I think it's time for a quick look forward.

It's been a turbulent year, especially for the Flash Platform. We have some ups, and definitely some downs, and at times it felt as if our beloved community was imploding. Some folks have moved on and are quite likely never to return - 'sinking ship' comes to mind. Whilst I'm not the captain of that particular ship, I certainly hold the rudder for my own little boat and despite what Adobe may want us to believe it is clear to everyone that Flash has had its peak. I feel a bit sad about that, and it's not really because of the technology but because of the aforementioned community; I just don't feel that I'll find the same mix of creativity, problem solving and 'thinking outside the box' spirit elsewhere. The Flash community has been and still is one of a kind and I hope it will stay that way in 2012 and beyond.

In terms of new technologies to pick up next year there are plenty to choose from. Too many almost, and I for one feel a bit overwhelmed at times. I have a feeling I am not alone.

› Read Full Article

Fundamentals for Great jQuery Development

I've recently stumbled across the following video by Damian Edwards of Microsoft. He gives a good intro to the intricacies of JavaScript, covering things like scope and closures before giving a great overview of JQuery. Definitely worth a watch.

If you are looking for a slightly more in-depth intro to jQuery then you could do a lot worse than sitting through Ray Camden's 'Introduction to jQuery' Udemy course which is a steal at only $20.