<html>
<head>
        <script type="text/javascript" src="moo-1.2.js"></script>
        <script type="text/javascript">
        window.addEvent('load', function() {
                new IFrame({
                        src: 'test.htm',
                        border: 0, frameborder: 0, id: 'test',
                        styles: {width:665, height: 400},
                        onload: function (doc) {
                                $('test').setStyle('height', 
this.getScrollSize().y);
                        }
                }).inject($('iframeContainer'));
        });
        </script>
</head>
<body>
<div id="iframeContainer"></div>
</body>
</html>

may the force be with you.


On 9월16일, 오후7시06분, websam <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I changed the code a bit to get rid of the error :
>
>     window.addEvent('domready', function() {
>         var myIFrame = newIFrame('test', {
>             src: 'test.htm',
>             styles: {
>                 width: 800,
>                 height: 100,
>                 border: '1px solid #ccc'
>             },
>
>             events: {
>                 load: function() {
>                     this.setStyle('height',
> window.test.getScrollSize().y);
>                 }
>             }
>         });
>     });
>
> But now i get this error :
>
>     window.test.getScrollSize is not a function
>
> Any advice ?

Reply via email to