Guest User

Untitled

a guest
Apr 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. In userhome.cfm:
  2.  
  3. $(document).ready(function() {
  4. //declare my tabs
  5. $('#mainTab > ul').tabs({ cache: true, ajaxOptions: {cache: false}});
  6. });
  7.  
  8. html:
  9.  
  10. <div id="mainTab">
  11. <ul>
  12. <li><a href="userlist.cfm" title="tab1"><span>User List</span></a></li>
  13. </ul>
  14. </div>
  15.  
  16. then in userlist.cfm:
  17.  
  18. $(document).ready(function() {
  19. $('#refreshList').click(function(){
  20. var selectedTab = $('#mainTab > ul').data('selected.ui-tabs');
  21. $('#mainTab > ul').tabs('load',selectedTab); //this should reload the tab contents but it doesn't work
  22. return false;
  23. });
  24. });
  25.  
  26. The html link:
  27.  
  28. <a href="#" id="refreshList" title="Refresh List">Refresh User List</a>
Add Comment
Please, Sign In to add comment