search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Scroll position not working in iframe

Asked by Anonymous
12 years ago.
Hi Dan,

I have placed the control in a iframe and set the scroll position to 7:00.

When in the iframe this doesnt work, but when I go direct to the URL the scroll position works fine and starts at 7:00.

Thanks
Comment posted by Dan Letecky
12 years ago.
Sorry for the delay.

I've created a simple test page and it seems to be working fine in IE7 and FF2.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<header>
</header>
<body>
<iframe src="http://www.daypilot.org/demo/Calendar/" width="1000" height="600"></iframe>
</body>
</html>

What's the browser you are using? Are there any JavaScript errors during loading?
Comment posted by Anonymous
12 years ago.
HI Dan,

I am using IE7 and there are no JavaScript errors when building.

This is for the scheduler if that makes any difference.
Comment posted by Dan Letecky
12 years ago.
I've tried the scheduler in IE7 as well and it works:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<header>
</header>
<body>
<iframe src="http://www.daypilot.org/demo/Scheduler/" width="1000" height="600">
</iframe>
</body>
</html>

Can you test this HTML with the demo URL and with your URL? If you were able to describe the steps to reproduce the bug it would help me a lot.
Comment posted by Anonymous
12 years ago.
I found the problem.

We are using the extjs tab control and building the Scheduler inside this.

The javascript from extjs must be screwing with the scoll positioning of the control.

looks like we will be getting rid of the extjs tabs then.
Comment posted by dsingh
11 years ago.

hi..

I wants to know that how to get browser scroll position inside an Iframe.

Please help.

regards dsingh

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.