• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

no scroll bar in IE,but Scroll bar in MF

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no it is not working as i needed
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
reply
    Bookmark Topic Watch Topic
  • New Topic