J
Jason .
Is there a way to dynamically size a popup object?
i.e.
function getMetricDesc(sDescription) {
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = sDescription
oPopupBody.style.border = "1 solid black"
oPopupBody.style.backgroundColor = "#ffffcc";
oPopup.show(30, 20, 775, 400, window.event.srcElement);-->
}
I need the paramater of 400 in the oPopup.show to be dynamic due because
I will not know the length of text to populate the popup. I guess an
alternative solution would be to add scroll bars but is that possible
with this object?
i.e.
function getMetricDesc(sDescription) {
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = sDescription
oPopupBody.style.border = "1 solid black"
oPopupBody.style.backgroundColor = "#ffffcc";
oPopup.show(30, 20, 775, 400, window.event.srcElement);-->
}
I need the paramater of 400 in the oPopup.show to be dynamic due because
I will not know the length of text to populate the popup. I guess an
alternative solution would be to add scroll bars but is that possible
with this object?