콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3993 화면

I'm trying to call a javascript code in XML file but it doesnt fires the action.

  <html>
   <head>
    <script type="text/javascript">
        function drawTree() {
          var data = [          
            {
             "firstname": "S",
              "lastname": "Brown",
              "age": 16,
            }];      
          var options = {
            'width': '400px',
            'height': '200px'
            };       
        var container = document.getElementById('mytree');
        var tree = new links.TreeGrid(container, options);      
        tree.draw(data);
        }
   </script>
 </head>
 <body onload="drawTree();">
  <div id="mytree"></div>
 </body>
</html>

Could please Anyone help me how to refine my code ?

아바타
취소