Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You send the response as json and act upon it. Have a look at this - http://jsbin.com/depuvelixu/edit?html,js,output

The json the code fetches is static but it can be served by a rails app. The DOM manipulation gets painful which is the reason people adopt JS frameworks.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: