Hello everyone.

I just used the Views module to create a block that displays the latest news ( It just displays all content of type News). In the View's settings I set it to use Ajax with a mini pager, and to show 5 items per page.

Every time I click the next arrow on the pager, it recreates the view, and hence the height setting for the block (which I had fixed) get changed. Is there any way to tells Views to call a javascript function of mine after it does all that it does when someone clicks on the next link.

Thanks a lot.

Comments

vamega’s picture

Has no one here ever tried to add a function to the AJAX mechanism of Views?

vm’s picture

This questions is likely better suited for the views issue queue or the # Drupal IRC channel

I'd also ensure that you mention which version of views is in use as views-3.x is being developed as I type this.

vamega’s picture

When I was about to create an issue there were instructions to first try out my luck at the Forums, as it would lead to less work for the Views devs. So I thought I'd try my luck here and spare them the trouble.

The support request is located here http://drupal.org/node/491400