myEvents.js 649 B

1234567891011121314151617181920212223242526272829303132
  1. $(document).ready(function(){
  2. function newElementaddressSpace(){
  3. var $tr = $('<tr>');
  4. $tr.append('<td><img src='+'graphics/Gauge.svg'+' height='+"100"+' width='+"100"+'></img></td></tr>');
  5. $('#tree').append($tr);
  6. console.log("this funct");
  7. }
  8. function parseAll(){
  9. $.getScript("executeNodeSetParser.js");
  10. console.log('OK1');
  11. $.ajax({url: 'execParser.php'})
  12. console.log('OK2');
  13. }
  14. $(".nodeRoot").click(function () {
  15. console.log("Here");
  16. $(this).css("border","5px solid green");
  17. })
  18. $("#load_nodeset").click(function(){
  19. newElementaddressSpace();
  20. parseAll();
  21. console.log("Button1 clicked")
  22. })
  23. });