Hacker News new | past | comments | ask | show | jobs | submit login

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.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: