Hi
I have a view that displays a table of records.I use a modal to update records. After a record is updated i want to refresh view content without refreshing the whole page.Any idea?

Comments

DanZ’s picture

AJAX is how Drupal dynamically updates just part of a page. It's easy to use and should work perfectly for your situation.

--
www.ztwistbooks.com. Math books that are actually fun.

faboulaws’s picture

Thanks for your answer but i need a more thank this info.Please note that i posted here after already doing some search on google.

WorldFallz’s picture

If you need more info then you'll have to actually ask the questions you're seeking answers to.

faboulaws’s picture

Maybe i did not explain myself right.So i will start over.
I have a view that list some nodes in a table.In each row there is a link that trigger a popup (ctools modal) that contains a form for editing the node.
Currently ,when a node form in the popup is submitted i refresh the whole page.But this is not the right way to do this.

My question is: how do i refresh this view using javascript?

Thanks

WorldFallz’s picture

I get that-- simply repeating the question doesn't add any additional info. And the first poster linked the docs you need to do that. If you need more specific info, you'll have to research the link and start creating your code. Then post it, and we can go from there.

DanZ’s picture

AJAX uses Javascript to update part of a page (like your view) in response to a user event.

Isn't that exactly what you want?

--
www.ztwistbooks.com. Math books that are actually fun.

faboulaws’s picture

When creating a view in the UI ,The views module allows paging without refreshing the whole page.Also filter results can be displayed without refreshing the whole page using AJAX.Any one know if there are triggers (or events) or function for just refreshing the current result with JavaScript?

Please note that I have experience with AJAX in Drupal and i have done my search got no straight answer.I dont think sending me to a whole article is helping.And if so tell me what section of the article covers this.

Thanks