this.getIframeWin() has no properties

Forums » General discussion
     » this.getIframeWin() has no properties

2008/07/03 05:48

I'm evaluating Dynarch, but I get this error when I use

this.getIframeWin() has no properties
http://localhost/test/dynarch/js/thelib.js
Line 11

This seems to work:

I Have DlDesktop -> DlLayout -> Notebook -> DlContainer -> Rte.

What fails: instead of Rte I -> DlLayout -> DlContainer -> DlLayout -> DlContainer -> Rte. Then I get the error above.

It too many (3) nested layouts a problem?

I tried with 2 nested layouts but still get the problem.

Note: with one layout it works, but when I type text it's double spaced, which isn't what I wanted. I am certain the layout css is being loaded correctly.

I simply want a textarea that fills ("*") to the bottom, and to the right. I've given up on the DlEntry with "textarea" because the bottom calculations aren't correct and I can type below the visible area of the DlEntry...

Thanks for any comments. If I need to build a demo I will. I was hoping a simple description would be enough.

Thank you.

var rte = new DlRteFrame({ });
    rte.initDesignMode(function() {
        rte.loadStyle("/test/rte.css?" + new Date().getTime());
        rte.setHTML("<b>test</b>");
        //rte.focus();
    });
tLayout.packWidget(tBottom, { pos: "bottom"});
tLayout.packWidget(rte, { pos: "bottom", fill: "*"});



2008/07/03 05:56

I only see the '3' alert:

    var rte = new DlRteFrame({ });

        alert("3");
    rte.initDesignMode(function() {
        // using the date.getTime() trick to avoid browser cache
        alert("4");
        rte.loadStyle("/test/rte.css?" + new Date().getTime());
        rte.setHTML("<b>test</b>");
        rte.focus();
    });

alert("5");

I've started the purchase process. When a get the source code perhaps I'll be able to give more debugging info.



2008/07/03 06:22

Through trial and error I see that initDesignMode() MUST be called after its container has called doLayout().

Then it works for me.

That's why my code was working with only one layout - because its doLayout() was already called, and my 2nd (and 3rd) layouts hadn't called doLayout() yet.



2008/07/03 06:25

I still don't know how to make the RTE NOT be double spaced.

Since the docs aren't done for the RTE yet, does anyone know how to enforce single-spaced text?


Note: if I rte.setHTML("<b>test</b>"); then I'm single spaced! But, I'm bold and I can't have that.


Thanks


2008/07/03 09:56

What do you mean by "double spaced"?

If you're referring to the space between paragraphs, then the proper way to “fix” is to edit "rte.css" and add there:

p { margin: 0; }

DynarchLIB.com
all hands person