scanTool.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <link rel="shortcut icon" href="#" />
  5. <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  6. </head>
  7. <div class="form_div">
  8. <h3>Scan Data</h3>
  9. <form method="GET" action="../services/return_cpee.php">
  10. <input type="text" name="id" id="cbid" required>
  11. <input type="text" name="workerID" id="workerID" required>
  12. <p> ToolID: <input type="text" name="toolID" id="toolID" required></p>
  13. <input type="submit" value="Submit" onclick="checkTool(toolID_or,rolle);">
  14. </form>
  15. </div>
  16. <script type="text/javascript" src="form.js"></script>
  17. <script type="text/javascript">
  18. var inhalt = "";
  19. $.ajax({
  20. url: '../callbacks/'+cbid+'.txt',
  21. async: false,
  22. success: function (data){
  23. inhalt = data;
  24. }
  25. });
  26. inhalt = JSON.parse(inhalt);
  27. toolID_or = inhalt[1]['toolID'];
  28. var rolle = inhalt[1]['rolle'];
  29. </script>
  30. </html>