kimjoar / writings

My blog posts
1.99k stars 121 forks source link

[UnderstandingBackbonejs] Validating with server #8

Open nMustaki opened 12 years ago

nMustaki commented 12 years ago

Hello, I have read with great interest your article, and Backbone is a lot clearer for me, thanks !

I was testing the code when it occured to me that the final code is not the complete mirror of the Jquery/AJAX version, as the backbone version uses the model text variable, while the former uses what comes from the server. (I found out when my server crashed and the content was still displayed.)

Am I correct or have I misunderstood something ?

Thanks you, Nathan

sultanshakir commented 11 years ago

@nMustaki I noticed the same thing when I injected a static JSON reply on from my server-side. I am new to Backbone. Did you figure out how to force it to get the reply from the server? I'm sure I can figure it out with a little refactoring.