I’ve just released an update to GORM Labs and JQuery PeriodicalUpdater (which was introduced in this post). While the modifications to GORM Labs were improvements, the JQuery PeriodicalUpdater update ended up being a punt on some functionality which I thought was successfully implemented.
Specifically, the problem with JQuery PeriodicalUpdater is that I can’t seem to get at the text of the response via JQuery’s $.ajax callbacks. I’d like to store the response text and then check it against the previous response text, and only trigger the success callback if there was a change in that text. This is a requirement to deal with web APIs that oh-so-often completely neglect to send Not Modified if the result hasn’t been modified. If someone has some code that works for getting at the text of the response, I’d love to see it. And yes, I know about xhr.responseText and xhr.responseXML: the XHR isn’t directly accessible in the success callback, and this.xhr().responseText always gives the empty string and this.xhr().responseXML always gives undefined.
Details about the GORM Labs update can be found here and here. As always, the GORM Labs documentation is up-to-date. I’ve also shifted GORM Labs from WTFPL (popularized in Dear User of My Open Source Project) to CC0. I’m hoping that will make people (and their lawyers) a bit more comfortable.
BTW, I’ve gotten precisely zero feedback on my Cry for Help on Open Source Projects. Which is a bummer.
Related posts:
Pingback: JQuery PeriodicalUpdater Updated Again | Enfranchised Mind