Should I render this template using JavaScript or the server?

后端 未结 4 1510
感情败类
感情败类 2020-12-28 09:29

I\'m rendering a news feed.

I\'m planning to use Backbone.js for my javascript stuff because I\'m sick of doing manual DOM binds with JQuery.

So right now I

4条回答
  •  星月不相逢
    2020-12-28 09:54

    I think Backbone's aim is to organize a Javascript in-page client application. But first of all you should take a position on the next statement:

    Even if javascript was turned off, the web-app still works in "post-back mode".

    Is that one of your requirements? (This is not a simple requirement.) If no, then I'll advice you: "Do more JS". But if yes then I believe your best friend is jQuery load function.

    A Note: I'm a Java programmer and there's a lot of server-side frameworks that bring the ability to write applications that work ajax-ly when js is enabled and switch on post-backs when it isn't. I think Wicket and Echo2 are two of them but it's meant they are server-side libraries...

提交回复
热议问题