test.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <style>
  2. table {margin-bottom:20px;table-layout:fixed; border-collapse:collapse; border-spacing:10px}
  3. table.t1 {width:400px; border:1px solid black}
  4. table.t1 th {border:1px solid black;padding:4px;background-color:#e0e0e0}
  5. table.t1 td {text-align:center}
  6. table.t2 {width:800px; border:1px solid black;}
  7. table.t2 th {border:1px solid black;padding:4px;background-color:#e0e0e0}
  8. table.t2 td {border:1px solid black; text-align:center}
  9. div.d1 {text-align:center; width=400px; background-color:#e0e0e0;
  10. font-size: 20px; margin-bottom:20px}
  11. </style>
  12. <textarea cols="90" rows="20" name="formStatus" id="formStatus">
  13. Loading
  14. </textarea>
  15. <script type="application/javascript">
  16. window.onload = init();
  17. function report(data){
  18. myprint(this.config,"Got "+data.rows.length+" events");
  19. }
  20. function init(){
  21. let config=new Object();
  22. config.document=document;
  23. config.debugId='formStatus';
  24. let setup=new Object();
  25. setup.containerPath="TECANT/Data";
  26. setup.schemaName="lists";
  27. setup.queryName="alcoholConsumption";
  28. setup.config=config;
  29. setup.callback=report;
  30. listQuery(config,setup);
  31. document.getElementById('formStatus').value+="\n Obj:"+obj;
  32. }
  33. </script>