Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1739

Feedback on: irt.org FAQ Knowledge Base Q1739

Sent by Mark Szlazak on February 17, 2002 at 01:38:51: - feedback #3600

Worth:
Worth reading

Length:
Too short

Comments:
The spacer gif doesn't work very well. It fails if your layer content extends beyond the gifs size, just like in the example you have provided. Enough space is provided to scroll to only line 155.

The way you do it dynamically in script for NN4 is by setting the document.height property. In your example, assign the sum of pageY and clip.height of the layer to document.height. Here's the code that gives full scrolling.

<html>

<head>

<title>Too long, or not long enough?</title>

<script language="javascript1.2"></script>

</head>

<body>

<form name="fillForm">
<input type="button" value="Fill" onclick="fillDiv()">
</form>

<div id="dynamicDiv" style="position: absolute;"></div>

</body>

</html>


Sent by Mark Szlazak on February 17, 2002 at 01:41:04: - feedback #3601

Worth:
Worth reading

Length:
Too short

Comments:
The spacer gif doesn't work very well. It fails if your layer content extends beyond the gifs size, just like in the example you have provided. Enough space is provided to scroll to only line 155.

The way you do it dynamically in script for NN4 is by setting the document.height property. In your example, assign the sum of pageY and clip.height of the layer to document.height. Here's the code that gives full scrolling.

<html>

<head>

<title>Too long, or not long enough?</title>

<script language="javascript1.2"></script>

</head>

<body>

<form name="fillForm">
<input type="button" value="Fill" onclick="fillDiv()">
</form>

<div id="dynamicDiv" style="position: absolute;"></div>

</body>

</html>


©2018 Martin Webb