View Full Version : dhtmlwindow.open() doesn't display scrollbars on ipad, iphone or itouch

03-01-2013, 04:36 AM

Does anyone know how to get the scrollbars to appear on apple mobile devices (ipad,iphone,itouch) when using dhtmlwindow.open(...scrollbar=1).
It works on desktop PC's and Macs as well as Android devices but Apple devices can't be scrolled.



03-01-2013, 09:15 AM
Do you mean this script here on DD?

DHTML Window widget (v1.1) - http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

The best solution really depends on the method you're using.

If you're using Ajax or div content, you can just add some CSS;
.drag-contentarea { -webkit-overflow-scrolling: touch; }
If you're using an iframe, you might need to add this too
overflow: scroll; but that will cause some extra scrollbars on non-touch devices, so instead you might want to switch that particular style in with some JavaScript, but only when a touchscreen devices is detected. John whipped up a sample script for that here: http://home.comcast.net/~jscheuer1/side/dropline/touch2.htm

If you need more help, please post a link to your page.