2 Replies Latest reply on Jul 30, 2014 7:36 AM by shae1725

    help with using GetLayoutObjectAttribute

    shae1725

      Title

      help with using GetLayoutObjectAttribute

      Post

           Any ideas on how add the GetLayoutAttribute to find the height and width of my web viewer into this html code

           I have tried enclosing using  \""    "\" but no joy

            

            </head>
            
             <body>
            
               <canvas id=\"myCanvas\" width= GetLayoutObjectAttribute (web;width)   height=  GetLayoutObjectAttribute (web;height) ></canvas>
            
               <script>
            
                 var canvas = document.getElementById(\"myCanvas\");
            
                 var context = canvas.getContext(\"2d\");