The page contains a news feed with tabs for sorting. By clicking, a change in content occurs and the footer jumps while hereing how to fix it http://tsmir-alex.owstudio.ru/news.php
- If possible, publish the solution found in response to your question . I am sure it will help many of your colleagues in the future. - Nicolas Chabanovsky ♦
|
1 answer
Alternatively, you can use the following algorithm:
When you click on the tab, make the container a little transparent (CSS property opacity). This will let the user know that some action has begun. Generally it would be good to impose a rotating spiner.
Initiate an ajax request.
If the request succeeds, rewrite the contents of the container. If you use jQuery, then it is done like this $ (". My-container"). Html ("new-content-from-ajax").
Bring back the value of opacity.
- The problem was different, but your way added beauty. Thank you - Alexander Startsev
|