Log in

View Full Version : iFrame help



jackyyll
04-18-2006, 07:04 PM
Hi,
Is it possible to make an iFrame like... start at a certain part of the page and alow no scrolling. Making it so it shows a part of the page, for example this WYSIWYG editor would be the only thing you would beable to see in the iFrame. Is that possible? If so, how? :D

NXArmada
04-18-2006, 08:27 PM
This is pretty easy to setup. All you need to do is place.


<a name="edit"></a>

Just above your WYSIWYG editor

And youc an use the following to setup up the iFrame



<iframe src="test.html#edit" width="800px" height="600px" scrolling="No" frameborder="0"></iframe>


The text in blue tells it were to point to in the HTML document. So when the iFrame loads telling it to goto #edit the page well jump to that A tag named edit thus showing you your editor.

The text in red shows you how to disable scrolling.

jackyyll
04-18-2006, 08:34 PM
Hmm.. That's not quite what I meant. And the WYSIWYG was just an example. The page I need to load in the iFrame isn't mine, so I can't edit it to have the <a name>'s. :/

Twey
04-18-2006, 08:48 PM
In that case, if there isn't one there already, then no. There are methods to scroll to a certain pixel distance, but it would be very unreliable, and since you don't want to allow scrolling, it wouldn't work. Oh, and the mouse wheel or arrow keys can still be used to scroll a non-scrolling iframe in most browsers.