jquery - BackboneJS is performing fetch and failing, but everything in the response is entirely ok -


the signal returns 200. response text accurate. ok. server log returns no errors @ all.

        @model.fetch(           success: (model, resp) =>              console.log 'sucess fetch'           error: (error, object) =>             console.log 'ya done messed up.'             console.log error             console.log object         ) 

my object returns in .responsetext :

  responsetext: "<div id='make_it_so'></div>↵<script>↵  $(function() {↵    window.router = new myapp.routers.questionsrouter(↵    {↵      words: {"type":"stuff","word":"this","that":"what","booger":"me","that":"if","fancy":"boo","what":"sois","dog":"son"}  ↵    });↵    backbone.history.start();↵  });↵</script>↵" 

headers good. good. possibly causing this? , how debug further?

for science, did test jquery, , here jquery's behavior when don't feed json object:

status: 200  statustext: "parsererror" 

so that's had.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -