Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49199

Refresh view from block module via ajax (no exposed filter)

$
0
0

Hi there.
I'm working on an module which povides a form in a block to edit the filter settings of a view. I'm not using an exposed filter, because the form is updating itself via AHAH - selecting one or more categories in a multi select form populates another multi select box with items - and I don't know, if this would be possible with 'hook_form_alter()'.

Now, I update the filter for taxonomy terms (and later some other filter sets) in my view object. After that I wish to update the view without page reloading. But I can't find any function to call in views API which manages the view refreshing. I found the 'ajax_views.js' file but no code example to use it. Is there a simple way using the build in functionalities of views or would it be simpler to use the result of '$view->preview()' with my own AJAX code (e.g. update the content of a wrapper div)?

Regards,
pronce


Viewing all articles
Browse latest Browse all 49199

Trending Articles