I wanted to use this gem with a server-generated JavaScript response (just loading the updated value via JSON was not enough). I needed to change two things to make it work:
The dataType of the ajax request must be script instead of json
The loadSuccessCallback should not try to parse responses which are not JSON
In case someone else is interested in this, I am willing to put a little more work into this to get this merged!
I wanted to use this gem with a server-generated JavaScript response (just loading the updated value via JSON was not enough). I needed to change two things to make it work:
dataType
of the ajax request must bescript
instead ofjson
loadSuccessCallback
should not try to parse responses which are not JSONIn case someone else is interested in this, I am willing to put a little more work into this to get this merged!