473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

scrollbar to iframe through javascript.

hi all,

can any one tell me how will i set scrollbar to iframe throguh
javascript.
please help me asap.
thanks in advance
Jun 27 '08 #1
3 2631
On Apr 23, 5:03*am, Archana <trialproduct2...@yahoo.comwrote:
hi all,

can any one tell me how will i set scrollbar to iframe throguh
javascript.

please help me asap.

thanks in advance
1) Goto: google.com

2) Search: iframe scrollbars

3) Press Button: I'm feeling lucky

4) Profit!

-Tom Woz :)
Jun 27 '08 #2
On Apr 23, 10:49*pm, tomtom.wozn...@gmail.com wrote:
On Apr 23, 5:03*am, Archana <trialproduct2...@yahoo.comwrote:
hi all,
can any one tell me how will i set scrollbar to iframe throguh
javascript.
please help me asap.
thanks in advance

1) Goto: google.com

2) Search: iframe scrollbars

3) Press Button: I'm feeling lucky

4) Profit!

-Tom Woz :)
hi,
thanks for reply
i think you are not getting what i want.

I want to enable/disbale scrollbar through javascript and not through
its style at runtime.

if you have any idea abt it then please help me asap

thanks in advance
Jun 27 '08 #3
Archana wrote:
>>can any one tell me how will i set scrollbar to iframe throguh
javascript.
[...]

I want to enable/disbale scrollbar through javascript and not through
its style at runtime.
Only Firefox knows the dynamic 'scrolling'-property for (i-)frames:

<iframe id="ifr"></iframe>
<input type="button" value="Enable scrollbars"
onClick="document.getElementById('ifr').scrolling = 'yes';">
<input type="button" value="Disable scrollbars"
onClick="document.getElementById('ifr').scrolling = 'no'; ">

But with a bit of creativity (requires a reload of the iframe):

<div id="ifrdiv">
<iframe></iframe>
</div>
<input type="button" value="Enable scrollbars"
onClick="document.getElementById('ifrdiv').innerHT ML =
'<iframe scrolling=yes></iframe>';">
<input type="button" value="Disable scrollbars"
onClick="document.getElementById('ifrdiv').innerHT ML =
'<iframe scrolling=no></iframe>';">

Hope this helps,

--
Bart
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David | last post by:
How do you turn an iframe scrollbar off, from within javascript, after the iframe has been loaded? In my example, the page with the iframe on it is initially set to scrolling=yes, however, I want...
1
by: Kristian | last post by:
I'm including an application into a customer website using an iframe. Some of the pages have a scrollbar since their height expands the height of the iframe. My problem is, I need to resize the...
2
by: Per Jessen | last post by:
This is a javascript question, possibly somewhat inappropriate for this group, but here we go: (please redirect me to the right place to ask). In Microsoft Internet Explorer (5 and up) using...
1
by: deepika | last post by:
Hi, I have a datagrid with 200 rows and an iframe adjacent to it. When I click on the row, the details of that row show up in the iframe. Now suppose I click on the 150th row, the postback occurs...
0
by: onzinnig | last post by:
Hello, I have a problem where a frame does not repaint a part of a window when using the horizontal scrollbar. Easier then explaining is to try out the two html pages at the bottom of this...
1
by: Matt S | last post by:
I have an advertiser that delivers content in an iFrame. Because of space limitations on my page, I have set the height of the iFrame to be half that of it's contents. The problem is that the width...
1
by: platoon1sc | last post by:
Hi guys.I have a problem with Internet Explorer in my web-application. I have a vertical scrollbar into my jsps but firefox show the vertical srollbar, but IE doesn't. IE show a blank space where...
0
by: AAaron123 | last post by:
hree questions. Number 3 is the tough one! { var htmlStyle = document.getElementsByTagName('html').style; var x = document.body.style; x.scrollbarShadowColor = htmlStyle.scrollbarShadowColor...
1
by: webdev1 | last post by:
Hi, I have set scrolling="auto" in my iframe, so when the height of iframe(Content) is more than the allocated height, vertical scrollbar appears.....Works perfect in Firefox, but when it comes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.