i want to load a HTML page to occupy the entire lightswitch screen
i tried this but i can't make the div to take the page (i tried to edit width and height of the custom control and of the div itself but this didn't work)
i want to load a HTML page to occupy the entire lightswitch screen
i tried this but i can't make the div to take the page (i tried to edit width and height of the custom control and of the div itself but this didn't work)
On
i can make that using by editig the default style of lightswitch
element.innerHTML += '<div id ="mycontent" style="width:100%; height: 100%;"> </div>"';
document.getElementById("mycontent").innerHTML +=
'<object data="page.html" type="text/html" style="width: 100%; height: 100%;"></object>';
$("object").parent().parent().css("width", "100%");
$("object").parent().parent().css("height", "1200px");
//to eliminate the header if you want to
$("span").parent().parent().parent().parent().parent().css("width", "0px");
$("span").parent().parent().parent().parent().parent().css("height", "0px");
...
Try adding the custom control to a group layout item and stretching both to fit the container,