TABS and click reactions

TABS and click reactions

Hi all
Just developing a user interface for robot control on a windows machine. 
I'm using TABs from JQueryUI. For that I created a index.html containing the widget header with 3 TABS
- inndex.html (contains js)
- TAB0 is loaded from a static file called Panel.html (nearly empty)
- TAB2 is loaded from a static file called Map.html (nearly empty)
- TAB1 is loaded from a static file called Alarmlist.html (contains js)

After calling http://192.168.1.200:8080/Robbi/index.html with Chrome I get a proper working TAB site with the defined contents. TAB1 is shown by default.

Alarmlist has a button acknowledge and I defined a reaction to the browser console.
The key works proper after a new call of the index.html
after a TAB Change from TAB1 to TAB0 and back the key doesn't work at all, no output to the console!

herewith my sites
- index.html
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Robot user interface</title>
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  6. <meta name="description" content="Robot user interface" />
  7. <meta name="author" content="Wolfgang Glück" />
  8. <meta name="editor" content="html-editor phase 5" />
  9. <link rel="icon" href="/static/icons/favicon-16x16.png" type="image/png">
  10. </head>

  11. <body>
  12. <div class="ui-widget">
  13.    <div     id="tabs"
  14.             class="ui-widget-header
  15.             ui-corner-top">

  16.        <ul>
  17.               <li><a href="Panel.html"> Panel</a></li>
  18.               <li><a href="Alarmlist.html"> Alarm list</a></li>
  19.               <li><a href="Map.html"> Map</a></li>
  20.        </ul>
  21.    </div>
  22. </div>

  23. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/blitzer/jquery-ui.css">
  24. <script src="../static/js/jquery-1.12.0.min.js" type="text/javascript"></script>
  25. <script src="../static/js/jquery-ui.min.js" type="text/javascript"></script>
  26. <script src="../static/js/AlarmlistScripts.js" type="text/javascript"></script>
  27. <script type="text/javascript">
  28. $(document).ready(function(){
  29.          $('#tabs').tabs({active: 1});
  30. });
  31. </script>

  32. </body>
  33. </html>



-TAB1 Alarmlist
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Robot user interface</title>
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
  6. <meta name="description" content="Alarm list" />
  7. <meta name="author" content="Wolfgang Glück" />
  8. <meta name="editor" content="html-editor phase 5" />
  9. <link rel="icon" href="/static/icons/favicon-16x16.png" type="image/png">
  10. </head>

  11. <body>
  12. <div class="ui-widget-content
  13.      ui-state-default
  14.      ui-corner-top
  15.      ui-corner-bottom">
  16.       <div id="AlarmListHeader">
  17.              <table width="30%" border="0" bgcolor="#F0F0F0" cellpadding="0" cellspacing="2">
  18.              <tr>
  19.                   <td align="left" >
  20.                            <button id="acknowledge">Acknowledge</button>
  21.                   </td>

  22.                   <td width="20">
  23.                   </td>

  24.                   <td>Page:
  25.                   </td>

  26.                   <td align="center" id="actual">?actual
  27.                   </td>

  28.                   <td width="20">
  29.                   </td>

  30.                   <td>
  31.                        <button type="button" id="button4">first</button>
  32.                   </td>

  33.                   <td align="center">
  34.                        <button type="button" id="button2">&lt;</button>
  35.                   </td>

  36.                   <td align="center">
  37.                        <button type="button" id="button3">&gt;</button>
  38.                   </td>

  39.                   <td align="center">
  40.                        <button type="button" id="button5">last</button>
  41.                   </td>

  42.                   <td width="20">
  43.                   </td>

  44.                   <td align="center" id="last">?last
  45.                   </td>

  46.              </tr>
  47.              </table>
  48.       </div>

  49.       <div id="AlarmListBody">
  50.              <table width="100%" border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="2">
  51.              <caption><h2>Robot alarm list</h2></caption>
  52.              <tr>
  53.                   <td width="130" align="left" bgcolor="#A0A0A0" id="0.1">Date / Time</td>
  54.                   <td width="420" align="left" bgcolor="#A0A0A0" id="0.2">Message</td>
  55.                   <td width="20" align="right" bgcolor="#A0A0A0" id="0.3">Limit</td>
  56.                   <td width="20" align="right" bgcolor="#A0A0A0" id="0.4">Value</td>
  57.                   <td width="10" align="left" bgcolor="#A0A0A0" id="0.5">Dim.</td>
  58.                   <td width="10" align="center" bgcolor="#A0A0A0" id="0.6">C/G</td>
  59.                   <td width="10" align="center" bgcolor="#A0A0A0" id="0.7">A</td>
  60.              </tr>
  61.              <tr>
  62.                   <td id="1.1">&nbsp;</td>
  63.                   <td id="1.2">&nbsp;</td>
  64.                   <td align="right" id="1.3">&nbsp;</td>
  65.                   <td align="right" id="1.4">&nbsp;</td>
  66.                   <td align="left" id="1.5">&nbsp;</td>
  67.                   <td align="center" id="1.6">&nbsp;</td>
  68.                   <td align="center" id="1.7">&nbsp;</td>
  69.              </tr>
  70.              <tr>
  71.                   <td bgcolor="#F0F0F0" id="2.1">&nbsp;</td>
  72.                   <td bgcolor="#F0F0F0" id="2.2">&nbsp;</td>
  73.                   <td align="right" bgcolor="#F0F0F0" id="2.3">&nbsp;</td>
  74.                   <td align="right" bgcolor="#F0F0F0" id="2.4">&nbsp;</td>
  75.                   <td align="left" bgcolor="#F0F0F0" id="2.5">&nbsp;</td>
  76.                   <td align="center" bgcolor="#F0F0F0" id="2.6">&nbsp;</td>
  77.                   <td align="center" bgcolor="#F0F0F0" id="2.7">&nbsp;</td>
  78.              </tr>
  79.  
  80.              </table>
  81.       </div>
  82. </div>

  83. <script src="../static/js/AlarmlistScripts.js" type="text/javascript"></script>

  84. </body>
  85. </html>

AlarmlistScripts
  1. $(document).ready(function(){
  2.          $('#acknowledge').button()
  3.                           .click(function(event) {
  4.                                  console.log("acknowledge geclickt.");
  5.                           });
  6.          $('#button2').click(function() { window.location.href = "/Robbi/2"; });
  7.          $('#button3').click(function() { window.location.href = "/Robbi/3"; });
  8.          $('#button4').click(function() { window.location.href = "/Robbi/4"; });
  9.          $('#button5').click(function() { window.location.href = "/Robbi/5"; });
  10. });



What did I wrong?
Thanks for your support