Hello,
I have a problem with forms using ajax elements. After I change selection in ajax select element it jumps to the stat of the page while waiting for response from server and after that jumps back. It takes milliseconds but it's visible and this is very annoying animation.
Look at screenshots:
Normal form layout: http://sp.bi.lt/drupal/form.jpg
select jumps while waiting for response: http://sp.bi.lt/drupal/ajax_element.jpg
I've managed to hide throbber passing empty progress type, but select control is still jumping. What I'm doing wrong? Here is a code of my form:
function tkon_ticker($ticker = null, $month = null, $templ = null) {
return drupal_get_form('tkfr_ticker', $ticker, $month, $templ);
}
function tkfr_ticker($form, &$form_state, $ticker = null, $month = null, $templ = null) {
// .....
// building a form
$ajax_wl = array('callback'=>'tkfr_cb_wl', 'wrapper'=>'wl-div', 'speed'=>'fast', 'effect'=>'none');//, 'progress'=>array('type'=>''));
$ajax_ticker = array('callback'=>'tkfr_cb_ticker', 'wrapper'=>'t-div', 'speed'=>'fast', 'effect'=>'none');//, 'progress'=>array('type'=>''));
$form['#attributes'] = array('class'=>array('container-inline'));
$form['templ'] = array('#type'=>'select', '#default_value'=>check_plain($templ), '#options'=>$templs, '#ajax'=>$ajax_ticker);