PDA

View Full Version : Pop-up Scrollbars


johnd
02-Jul-2003, 02:14 PM
I have altered the actiniccore.js as below in order to disable scrollbars and make the window look neater.

function ShowPopUp(sUrl, nWidth, nHeight)
{
window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars=no, resizable=no');
}

It works fine on most browser / computer combinations but not on others. i.e. the scrollbars still appear on some combinations.

It is not as simple as the browser version or the operating system version! IE6 on one XP machine will work and on another it won't!

Any ideas anyone? Is my syntax correct?
:confused:

MikeBooker
02-Jul-2003, 04:51 PM
The javascript reference docs states:

"Many of these features (as noted above) can either be yes or no. For these features, you can use 1 instead of yes and 0 instead of no. If you want to turn a feature on, you can also simply list the feature name in the windowFeatures
string."

If you are having browser problems, try just not specifying the feature if you want it off, or specifying =0.

HTH