Posted by faboulaws on January 13, 2013 at 10:09am
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?
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
AJAX
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.
thanks
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.
_
If you need more info then you'll have to actually ask the questions you're seeking answers to.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
update
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
_
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.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
AJAX uses Javascript to
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.
reply if you understand my question.skip if not
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