« Return to Thread: Error when using YUILoader with container

Re: Re: Error when using YUILoader with container

by Satyam-3 :: Rate this Message:

Reply to Author | View in Thread

I reported that in July, and I found I could work around the error.  If you
go to container.js, linesstarting at 1425 comment the section as shown:

                    if (YAHOO.env.ua.gecko) {
/*
                        sHTML = "<html><head><script " +
                                "type=\"text/javascript\">" +
                                "window.onresize=function(){window.parent."
+
                                "YAHOO.widget.Module.textResizeEvent." +
                                "fire();};window.parent.YAHOO.widget.Module."
+
                                "textResizeEvent.fire();</script></head>" +
                                "<body></body></html>";

                        oIFrame.src = "data:text/html;charset=utf-8," +
                            encodeURIComponent(sHTML);
*/
                    }

If you take that section out, you won't have the error.  I don't have a clue
what causes it.  I've been working with container modified as shown since
then and if I'm missing something, I didn't notice so far.  What I didn't
get anymore was the error message.

Satyam



----- Original Message -----
From: "mads_randstoft" <mads.randstoft@...>
To: <ydn-javascript@...>
Sent: Thursday, August 23, 2007 1:18 PM
Subject: [ydn-javascript] Re: Error when using YUILoader with container


> The page is internal, but this demonstration shows what I get as error.
>
> http://www.randstoft.dk/error/
>
> --- In ydn-javascript@..., Adam Moore <adamoore@...> wrote:
>>
>> On Wed, Aug 22, 2007 at 09:22:09AM -0000, mads_randstoft wrote:
>> > When I use the YUILoader to load the container library and in the
>> > "onLoadComplete" create a Dialog (it does not matter if I create it
>> > from script or from markup) and afterwards "render" the dialog I get
>> > this error in Firefox:
>> >
>> > Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED)
>> > [nsIScriptableInputStream.available]
>> >
>> > The same error does not occur if I load the library manually (In the
>> > head with <script> tags...
>> > From what I can digest off the net it is a timing error?
>>
>> Possibly, but I'm not able to recreate the problem.  Can you provide a
>> link to the page?
>>
>> -Adam
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.484 / Virus Database: 269.12.2/967 - Release Date: 22/08/2007
> 18:51
>
>

 « Return to Thread: Error when using YUILoader with container

LightInTheBox - Buy quality products at wholesale price!