|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
Error when using YUILoader with containerWhen 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? |
|
|
Re: Error when using YUILoader with containerOn 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 |
|
|
Re: Error when using YUILoader with containerThe 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 > |
|
|
Re: Re: Error when using YUILoader with containerI 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 > > |
|
|
Re: Error when using YUILoader with containerAny 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. --- In ydn-javascript@..., "mads_randstoft" <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? > |
|
|
Re: Re: Error when using YUILoader with containerI 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) I never had the problem again. That was the guilty one in my case, I can't tell for sure if it is the same one in your case. Try first with IE and if it works, start disabling add-ons. Satyam ----- Original Message ----- From: "Leroy Stav" <roy@...> To: <ydn-javascript@...> Sent: Monday, February 04, 2008 8:26 PM Subject: [ydn-javascript] Re: Error when using YUILoader with container > 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. > > --- In ydn-javascript@..., "mads_randstoft" > <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? >> > > > > > > Yahoo! Groups Links > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date: > 03/02/2008 17:49 > > |
|
|
Re: Error when using YUILoader with containersorry, 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 knowledge, which of course it isn't.... The problem is a firefox problem, there is no doubt about that. NS_BASE_STREAM_CLOSED is unique to firefox. The problem seems to come up with a number of javascript extentions, specifically when firebug (or some other plugin, I'm not sure...) is installed and/or enabled. I'm hoping that a member of the YUI dev team notices this post soon, as I'm anxious to have an error free application. Nothing actually breaks in my app... although I'm sure that firefox isn't happy running it as there is probably a leak somewhere because of this. --- In ydn-javascript@..., "Satyam" <satyam@...> wrote: > > 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) I never had the problem again. That was the guilty one in my > case, I can't tell for sure if it is the same one in your case. Try first > with IE and if it works, start disabling add-ons. > > Satyam > > ----- Original Message ----- > From: "Leroy Stav" <roy@...> > To: <ydn-javascript@...> > Sent: Monday, February 04, 2008 8:26 PM > Subject: [ydn-javascript] Re: Error when using YUILoader with container > > > > 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. > > > > --- In ydn-javascript@..., "mads_randstoft" > > <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? > >> > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date: > > 03/02/2008 17:49 > > > > > |
|
|
RE: Re: Error when using YUILoader with containerHi,
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. http://users.skynet.be/mgueury/mozilla/download.html - Do you have this installed? - Can you try disabling it, and then seeing if you get the error? This simple test page (no YUI code) will also cause the same error if you have the plugin installed: http://yuiblog.com/sandbox/yui/v241/examples/container/HTMLValidatorErro r.html We can go from there. Thanks, Satyen |
|
|
Re: Error when using YUILoader with containerYes, 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 clients have it installed... Thank you very much for the fast response and successful 'solution' :-) --- In ydn-javascript@..., "Satyen Desai" <sdesai@...> wrote: > > 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. > > http://users.skynet.be/mgueury/mozilla/download.html > > - Do you have this installed? > - Can you try disabling it, and then seeing if you get the error? > > This simple test page (no YUI code) will also cause the same error if > you have the plugin installed: > > http://yuiblog.com/sandbox/yui/v241/examples/container/HTMLValidatorErro > r.html > > We can go from there. > > Thanks, > Satyen > |
|
|
RE: Re: Error when using YUILoader with containerI 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 with the plugin developer. I'll update the thread when we get a response and also add it to our documentation. Regards, Satyen |
|
|
Re: Re: Error when using YUILoader with containerThanks 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 add-on but HTMLValidator, which uses it. Satyam ----- Original Message ----- From: "Satyen Desai" <sdesai@...> To: <ydn-javascript@...> Sent: Tuesday, February 05, 2008 10:39 PM Subject: RE: [ydn-javascript] Re: Error when using YUILoader with container >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 with the plugin developer. I'll update the thread > when we get a response and also add it to our documentation. > > Regards, > Satyen > > > > Yahoo! Groups Links > > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.19.20/1259 - Release Date: > 04/02/2008 20:42 > > |
|
|
Re: Error when using YUILoader with container--- In ydn-javascript@..., "Leroy Stav" <roy@...> wrote:
> > 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 clients have it installed... > > Thank you very much for the fast response and successful 'solution' :-) > FYI (for those searching for this), the relevant HTMLValidator thread is here: http://www.htmlpedia.org/phpBB/viewtopic.php?f=9&t=119 |
| Free embeddable forum powered by Nabble | Forum Help |