Wednesday, 15 February 2012

javascript - Rails4 - How to update a view when a table gets updated? -



javascript - Rails4 - How to update a view when a table gets updated? -

i info page abc.html using ajax , store in table. 1 time info stored in table(i.e. commit takes place), want info updated in page xyz.html in runtime users can see updates without having refresh page.

i have got info , updated info in table. don't know 1 time info gets stored in table. believe ajax required update webpage xyz.html. of great help if can point resource on approach follow implement it.

--update-- newbie not asking write code me. thanks.

you going have socket.io real-time updating.

http://socket.io/

basically, socket.io javascript library built on top of node.js trolls servers looking new activity. sort of ajax, ajax request prompted user (by button click or scrolling bottom of page, example).

i'm not gonna write code you. if new, it's not going easy thing accomplish. may seem simple feature, it's quite complex.

if start writing code, , stuck, come , inquire question, no 1 going write feature free buddy, sorry.

here tutorial on how write real-time updating chat-application socket.io. take time , know how socket.io works , should able figure out how create work needs.

javascript jquery ajax ruby-on-rails-4

No comments:

Post a Comment