Hi

It would be great if there was an indication that a search is taking place, like the thorbber in the ajax view.

Idan

Comments

infojunkie’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev

Yes. It does in the case of Ajax, though :-)

arbel’s picture

hmm, my setup has ajax setup and still no throbber.

here's the view:

$view = new view;
$view->name = 'test';
$view->description = '';
$view->tag = '';
$view->base_table = 'node';
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['row_options']['build_mode'] = 'full';
$handler->display->display_options['row_options']['links'] = 1;
$handler->display->display_options['row_options']['comments'] = 0;
/* Filter: Node: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'property' => 'property',
);
/* Filter: Taxonomy: Term */
$handler->display->display_options['filters']['tid']['id'] = 'tid';
$handler->display->display_options['filters']['tid']['table'] = 'term_node';
$handler->display->display_options['filters']['tid']['field'] = 'tid';
$handler->display->display_options['filters']['tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid']['expose']['operator'] = 'tid_op';
$handler->display->display_options['filters']['tid']['expose']['label'] = 'Type';
$handler->display->display_options['filters']['tid']['expose']['identifier'] = 'tid';
$handler->display->display_options['filters']['tid']['expose']['reduce'] = 0;
$handler->display->display_options['filters']['tid']['reduce_duplicates'] = 0;
$handler->display->display_options['filters']['tid']['type'] = 'select';
$handler->display->display_options['filters']['tid']['vid'] = '4';
$handler->display->display_options['filters']['tid']['error_message'] = 0;
/* Filter: Content: Price (field_price) - amount */
$handler->display->display_options['filters']['field_price_amount']['id'] = 'field_price_amount';
$handler->display->display_options['filters']['field_price_amount']['table'] = 'node_data_field_price';
$handler->display->display_options['filters']['field_price_amount']['field'] = 'field_price_amount';
$handler->display->display_options['filters']['field_price_amount']['operator'] = 'between';
$handler->display->display_options['filters']['field_price_amount']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_price_amount']['expose']['operator'] = 'field_price_amount_op';
$handler->display->display_options['filters']['field_price_amount']['expose']['label'] = 'Price';
$handler->display->display_options['filters']['field_price_amount']['expose']['identifier'] = 'field_price_amount';
/* Filter: Taxonomy: Term */
$handler->display->display_options['filters']['tid_1']['id'] = 'tid_1';
$handler->display->display_options['filters']['tid_1']['table'] = 'term_node';
$handler->display->display_options['filters']['tid_1']['field'] = 'tid';
$handler->display->display_options['filters']['tid_1']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid_1']['expose']['operator'] = 'tid_1_op';
$handler->display->display_options['filters']['tid_1']['expose']['label'] = 'Location';
$handler->display->display_options['filters']['tid_1']['expose']['identifier'] = 'tid_1';
$handler->display->display_options['filters']['tid_1']['type'] = 'select';
$handler->display->display_options['filters']['tid_1']['vid'] = '5';
$handler->display->display_options['filters']['tid_1']['error_message'] = 0;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'node';
$handler->display->display_options['row_options']['links'] = 1;
$handler->display->display_options['row_options']['comments'] = 0;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['path'] = 'listing';

infojunkie’s picture

Title: Add indication that a search is taking place - Throber » Display throbber in Views 3
Category: feature » bug

I hadn't tested Views Filters Auto-submit with Views 3 yet. Turning this into a bug.

sebas5384’s picture

Maybe this can help you!

http://drupal.org/node/1057836

Sebas.

Nick Robillard’s picture

So I see the throbber appearing now in Views 3 but it's only if i hit enter - ie: if the form is submitted via Apply button without the help of change detection JS.

Ideally I'd see a throbber appear whenever the exposed form is submitted, not just when Apply is clicked.

In views ajax.js, this is how the throbber gets added.

$('input[type=submit], button', ajax_area).click(function() {
  $('form', ajax_area).append('<input type="hidden" name="'
    + $(this).attr('name') + '" value="' + $(this).val() + '">');
      $(this).after('<span class="views-throbbing">&nbsp</span>');
});

So the Apply button has to get clicked in order for throbber to show. In order for this to happen, the form submit JS would have to change to simulating a click on the hidden Apply button $('.form-submit').click() rather than doing a form submit $(form).submit() like it is right now. I've tried some things but have found that AJAX breaks when doing a $('.form-submit').click().

seandunaway’s picture

I'm missing the throbber in Views Hacks 6.x-1.x-dev against Views 6.x-3.x-dev, also.

fourmi4x’s picture

Suscribing - It would be great to have the throbber with auto-submit.

knic’s picture

Suscribing - it's a bit confusing for the user if there's no result. Nothing changes on screen and it looks like the search is simply not working.

halloffame’s picture

Component: Views Filters Auto-submit » General

Still happening with the latest dev version. We need a way to let the user know that something is being loaded...

halloffame’s picture

Component: General » Views Filters Auto-Submit