myEvents.js 655 B

123456789101112131415161718192021222324252627282930313233
  1. $(document).ready(function(){
  2. function newElementaddressSpace(){
  3. var $tr = $('<tr>');
  4. $tr.append('<td><img src='+'graphics/node.svg'+' height='+"100"+' width='+"100"+'></img></td></tr>');
  5. $('#tree').append($tr);
  6. console.log("this funct");
  7. }
  8. function parseAll(){
  9. $.getScript("js/executeNodeSetParser.js");
  10. console.log('OK1');
  11. $.ajax({url: 'js/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. });