File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes no scroll bar in IE,but Scroll bar in MF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "no scroll bar in IE,but Scroll bar in MF" Watch "no scroll bar in IE,but Scroll bar in MF" New topic
Author

no scroll bar in IE,but Scroll bar in MF

joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162

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

Joined: Aug 03, 2008
Posts: 9321
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61764
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162

<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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Feb 26, 2008
Posts: 162
i dont need complete scroll bar

i need scroll bar in iframe only
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
So the scrollbar is appearing on the parent page and not in the iframe? Sample code please....

Eric
joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
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

Joined: Aug 06, 2008
Posts: 25
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

Joined: Feb 26, 2008
Posts: 162
no it is not working as i needed
rich dorfman
Greenhorn

Joined: Jul 31, 2009
Posts: 1
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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: no scroll bar in IE,but Scroll bar in MF