Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Error when using YUILoader with container   Message List  
Reply | Forward Message #17158 of 52117 |
Re: [ydn-javascript] Re: Error when using YUILoader with container

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@yahoogroups.com>
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@yahoogroups.com, 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
>
>




Thu Aug 23, 2007 12:50 pm

satyamutsa
Offline Offline
Send Email Send Email

Forward
Message #17158 of 52117 |
Expand Messages Author Sort by Date

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...
mads_randstoft
Offline Send Email
Aug 22, 2007
9:24 am

... Possibly, but I'm not able to recreate the problem. Can you provide a link to the page? -Adam...
Adam Moore
adam.moore
Online Now Send Email
Aug 22, 2007
6:47 pm

The page is internal, but this demonstration shows what I get as error. http://www.randstoft.dk/error/...
mads_randstoft
Offline Send Email
Aug 23, 2007
11:18 am

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...
Satyam
satyamutsa
Offline Send Email
Aug 23, 2007
12:55 pm

Any news on this? I'm getting this error when calling somepanel.render(document.body); from within a function that is called from my onDOMReady function....
Leroy Stav
montypython_21
Offline Send Email
Feb 4, 2008
7:26 pm

I got a similar error when I had the HTMLtidy add-on loaded. The page worked fine in IE but failed in Firefox. Without the add-on (which I never reinstalled)...
Satyam
satyamutsa
Offline Send Email
Feb 4, 2008
8:41 pm

sorry, I didn't make myself completely clear since I did quite a bit of research on this before posting, I kind of assumed what I discovered was common...
Leroy Stav
montypython_21
Offline Send Email
Feb 5, 2008
5:09 am

Hi, The one plugin we know of which causes this is the HTMLValidator plugin for Firefox (which uses HTMLTidy), when it hits an iframe with a "data:" src url. ...
Satyen Desai
sdezzi
Offline Send Email
Feb 5, 2008
7:28 pm

Yes, and yes! disabling HTMLValidator did, indeed, stop the error from happening! I'm no longer worried about this little bug. Lets just hope that none of our...
Leroy Stav
montypython_21
Offline Send Email
Feb 5, 2008
8:40 pm

I believe credit/thanks go to Satyam (with an "am"). When we first hit the issue, he helped us pin it down to the HTMLValidator plugin. I've also filed a bug...
Satyen Desai
sdezzi
Offline Send Email
Feb 5, 2008
9:39 pm

... FYI (for those searching for this), the relevant HTMLValidator thread is here: http://www.htmlpedia.org/phpBB/viewtopic.php?f=9&t=119...
xurizaemon
Offline Send Email
Feb 11, 2008
10:48 pm

Thanks but it wasn't this Satyam, I didn't have a clue and still don't, but the fix works. I even got the name wrong it wasn't HTML tidy, which is not an...
Satyam
satyamutsa
Offline Send Email
Feb 5, 2008
10:34 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help