AutoSize PopUp
-
I am building a asp.net project using javascript in places. I am currently building some javascript in vb.net to open a new pop up.
popup = window.open('ReportPopUp.aspx?",'Report','Top=50,Left=50,titlebar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
is what I am using. In the new window there is a grid but until it is built the size is unknown. Is there a way to set the size of the new window to the size of the grid? It does not need to resize after just the intial size on load. -
I am building a asp.net project using javascript in places. I am currently building some javascript in vb.net to open a new pop up.
popup = window.open('ReportPopUp.aspx?",'Report','Top=50,Left=50,titlebar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
is what I am using. In the new window there is a grid but until it is built the size is unknown. Is there a way to set the size of the new window to the size of the grid? It does not need to resize after just the intial size on load.You should use the body onload and then read the width of the HTML table, that was generated. Assign this with to the with of the window.
-
I am building a asp.net project using javascript in places. I am currently building some javascript in vb.net to open a new pop up.
popup = window.open('ReportPopUp.aspx?",'Report','Top=50,Left=50,titlebar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes');
is what I am using. In the new window there is a grid but until it is built the size is unknown. Is there a way to set the size of the new window to the size of the grid? It does not need to resize after just the intial size on load.