• 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
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

no scroll bar in IE,but Scroll bar in MF  RSS feed

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i am having iframe in jstl vertical scroll bar is not appearing in IE but appears in Mozill firefox

code is below

 
Sheriff
Posts: 9643
42
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try changing the scrolling attribute to yes instead of auto. Although this is not the correct solution as auto uses scrollbars if needed but this is a quick fix

And I feel that HTML-JavaScript forum would be a better option for this as this is not a JSTL code...
 
Sheriff
Posts: 67259
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP, not HTML.

For more information, please read this.

This post has been moved to a more appropriate forum.

 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

<iframe scrolling="yes" id='ifr_loghistory' name='ifr' src='Entry.html'
frameborder="no" style="width: 100%; height: 250pt;"></iframe>

if more records are there vertical scroll bar should be appear

in my case only 2 records are there vertical scroll bar not appear in IE but appear in mozilla firefox
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want the scrollbar to show up, try to do the scrolling the page itself and not with the iframe. Give the div a height and set the overflow to scroll.

Eric
 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont need complete scroll bar

i need scroll bar in iframe only
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So the scrollbar is appearing on the parent page and not in the iframe? Sample code please....

Eric
 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code is



vertical scroll bar appears when content is above the height. but it also appears when content is withinn the height of iframe.

so i changed 'auto' for scrolling attribute, now vertical scroll bar successfully disappears disappears when not needed in IE. but appears in Mozilla. it should also be disappeard in mozilla when it is not needed.

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scrolling issues in IFrames are generally because of content and not container. FireFox will often add additional padding and/or margins to the document you are calling within your IFrame. Try focusing there - by adding something like:



Or try outlining your document. You may see margins in FF and not in IE (or vice-versa).
 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no it is not working as i needed
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Eric Pascarello wrote:If you want the scrollbar to show up, try to do the scrolling the page itself and not with the iframe.


This is good advice. I had same problem in IE. IFrame tag had scrolling=yes. But when I looked at file that was loading into IFrame, it had this code:

I changed it to this & problem went away:
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!