hello,
i am having a problem using the ajax pager in views. i created a view to list a set of node titles and to use ajax, with the mini pager (the large pager does not work as well). for some reason the ajax pager does not initiate, and instead the regular pager is there. when i click on the >> the whole page refreshes instead of the block with the view. has anybody ever come across this issue? could i have missed something. i will include the exported code from the view just incase it can give a clue.
$view = new view; $view->name = 'test_views'; $view->description = 'test old view'; $view->tag = 'test'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'title' => array( 'label' => 'Title', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'trade_alerts' => 'trade_alerts', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('title', 'Testing View'); $handler->override_option('use_ajax', TRUE); $handler->override_option('items_per_page', 3); $handler->override_option('use_pager', 'mini'); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('block_description', ''); $handler->override_option('block_caching', -1);
thanks,
ephman.
Comments
i'm sorry... i should have
i'm sorry... i should have been more specific... no excuse, but i am so frustrated with this. my current setup is running drupal 6.6, and views 6.x-2.1. on the same server, but a different website, i have the views module with the ajax pager working properly. any clues why the ajax pager would not work?
thanks,
ephman
I have the exact same
I have the exact same problem. Did you figure it out by now or is there anyone out there who knows this problem? The ajax pager worked a few times and now it goes to the requested page/list, but it refreshes the entire page instead of doing it on the spot. I have no idea what made it change that way. My views is in the same website as drupal.
My Drupal version is 6.12 and my views version is 6.x-2.6 .
Thanks in advance,
Danny
-- EDIT: I fixed it. For some unknown reason it does not work when i select use Ajax: Yes only in Default, but i need to override the same option per display. If there is a logic explanation for this, I would love to hear it.