Guest User

Untitled

a guest
Mar 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. Dependencies used
  2. <script src="<c:url value="/resources/js/jquery-min-1.11.1.js"/>"
  3. type="text/javascript" language="JavaScript"></script>
  4. <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  5. <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  6.  
  7. jQuery( "#tab2" ).tabs({
  8. disabled: [0]
  9. });
  10. jQuery.ajax({...
  11. .... })
  12. .done(function(result){
  13. jQuery( "#tab2" ).tabs( "enable", 0);
  14.  
  15. jQuery( "#tab1" ).tabs({
  16. disabled: [0]
  17. });
  18. jQuery.ajax({...
  19. .... })
  20. .done(function(result){
  21. jQuery( "#tab1" ).tabs( "enable", 0);
  22.  
  23. Problem : It is still allowing to click tab2 before completion of tab1
  24. ajax call.On multiple clicks on tab1,tab2,tab1,tab2,tab1,tab2 fastly.
  25. the data is not shown correctly.
  26.  
  27. Please let me know .
Add Comment
Please, Sign In to add comment