• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no scroll bar in IE,but Scroll bar in MF

 
joseph prabhu
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

 
Ankit Garg
Sheriff
Posts: 9528
33
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...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
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
 
Eric Pascarello
author
Rancher
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
Rancher
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.

 
Shawn Montague
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
 
rich dorfman
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic