-
This last week I learned a new thing about jQuery custom events, particularly the ones of global nature. There's good documentation and examples about custom element events, but not much for the global ones. Why do we need custom events? Custom events make it easier to keep complex pages under control...
-
Just before I emigrated to Australia, I took on a small contract to build a website for a UK company who wanted to start up a new kind of UK recruitment site, one where employers could advertise directly, and more specifically one where recruitment agencies couldn’t. The result was Empty Lemon...
-
This post is part of a series called the Guided Tours . In this second installment we are still looking inside the jQuery code. Trust me, even if it's hard to digest, you can still learn enough if you focus on a little bit at a time. The code we are interested in today is the following. //from jQuery...
-
This post is part of a series called the Guided Tours . I'm sure I'm not alone when I say that one of the best ways to improve our coding skills is by reading code written by someone else. Sometimes we don't realize how lucky we are to have so much source code at our fingertips, namely Open...
-
I have been wanting to write a blog about this for a while and my first post on Devlicious is the perfect place. Firstly I have to thank Jess Chadwick for his help with this when I first started out with the Bundl.it project. Working with ASP.NET MVC has been wonderous, but when I was first starting...
-
On my current app we are using ajax heavily for updating forms, often with the response getting injected into an table or unordered list . The entire form is then posted for the action which will actually change state in the domain. For example, say we have a 'NewItem' form (and have several...
-
Sometimes you don't know what type of document the server is going to return, so it would be nice to have the ajax handler deal with the response as the server is directing it to. JQuery doesn't have this baked in (I have had a ticket for ages there to implement it), but a workaround is to roll...
-
I just spent way too long wondering why my silly page kept refreshing itself, one of the forms on the page was submitting itself over and over ... I had been refactoring some Javascipt to allow me to use it generically across pages. My orginal code to bind an ajax call to the submit of the form was as...
-
I wrote a nice little charting component for our site recently, and needed to call a Javascript function in one View (the one that was the main page for charting), from another View (one that went off to the server using Ajax to load up a list of feeds that could be charted). This would have been traditionally...