For now I'm using the walkaround below to solve the second problem, 
consisting of two separate ajax call :
<script>
jQuery(document).ready(function() 
        {
         jQuery('tr.w2p_even.even.with_id,tr.w2p_odd.odd.with_id ').on(
"dblclick",function() {                                                     
                                    
                                                                            
            var sid =  jQuery(this).prop('id');
                                                                            
            ajax('on_card_selected?card_id='+sid,[] ,'target') ;
                                                                            
            ajax( "{{=URL('default', 'update_army.load' ) }}",[],
'army_header');                                                             
                            ;
                                                                            
                    }
                                                                        );
        }
                        );
</script>

It works well 99% of time until the double click are not too fast from the 
end user : in this particular case, 
second call can be lower than the first one.
As the first update db and the second read the db it results on no refresh 
on the screen until user press F5 to force it manually which is not 
suitable.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to