• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Disabling content scrolling in iframe

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all,

i have an iframe that includes a file with some html content. the total area of that file's content is bigger than the iframe's area, which means some of the file's content is not visible without scrolling.
i set the srolling="no" and remove the scrollbars from the iframe. in the ie i still can drag the mouse in the mousedown position inside that iframe to "scroll" the internal content. in firefox this is not possible, which is fine.
my question is how can i avoid this "mousedown - scrolling" without disabling the onmousedown event which is needed for other issues.

thanks!
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can try adding overflow property to hidden, may have to add it to the body tag.

Eric
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.
This didn't help
Yeh, in case I wasn't clear in my first post, IE doesn't add
scrollbars while I drag the mouse. The iframe content just "moves" inside the iframe in the direction opposite to the mouse movement direction...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!