On some pages with a lot of EventListeners, I also see this " tapestry.cleanConnect is not a function" every now and then. When this occurs, all the ajax stuff on the page won't work, since the connect events are never executed. The problem only shows with Firefox, never with IE. After I disabled Firebug, the problem never showed up again. I guess that Firebug sometimes fails to execute some dojo.require stuff on highly js-loaded pages.
Since most of the visitors of my website won't use Firebug, this shouldn't be too much of an issue ;-) 2006/10/26, Peter Beshai <[EMAIL PROTECTED]>:
I did eventually try that and it worked but it seemed slightly volatile. I'm not sure if this has to do with how my snapshots have been rolled back to August versions (see snapshots thread), but I randomly see in my dojo console "tapestry.cleanConnect is not a function" and when that happens that solution doesn't work. Peter Beshai >From: andyhot <[EMAIL PROTECTED]> >Reply-To: "Tapestry users" <users@tapestry.apache.org> >To: Tapestry users <users@tapestry.apache.org> >Subject: Re: Call listener after page appears on screen >Date: Thu, 26 Oct 2006 19:25:31 +0300 > >Try this: ><script type="text/javascript"> >dojo.event.connect(window, "onload", > setTimeout(function() { > dojo.byId("mockHidden").onclick(); > }, 50) >); ></script> > > > >Peter Beshai wrote: > > Is there an easy way of calling a listener after the page appears > > (rendered) on screen? I couldn't think of one, and so I tried having > > adding an event to the onload of the page: > > > > <script type="text/javascript"> > > dojo.event.connect(window, "onload",dojo.byId ("mockHidden").onclick()); > > </script> > > > > or > > > > <script type="text/javascript"> > > dojo.addOnLoad(function(e){ dojo.byId("mockHidden").onclick() }); > > </script> > > > > where mockHidden is a component that has an eventlistener (the > > listener I want to have called after the page is loaded) attached to > > it in my .java file. If I call dojo.byId("mockHidden").onclick() from > > firebug's console, it works, but when the page loads it says :: > > dojo.byId("mockHidden").onclick is not a function. > > > > I figured that was because tapestry connects the event at the end of > > the page (and that <script> block is somewhere before that). Is there > > any way of having the javascript called AFTER tapestry has connected > > the event?? Or is there another way of accomplishing this goal? > > > > Thanks, > > Peter Beshai > > > > _________________________________________________________________ > > Voyez vos amis en faisant un appel vidèo dans Windows Live Messenger > > http://imagine-msn.com/messenger/launch80/default.aspx?locale=fr-ca > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > >-- >Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr >Tapestry / Tacos developer >Open Source / J2EE Consulting > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ Découvrez Live Search de votre PC ou de votre appareil mobile dès aujourd'hui. http://www.live.com/?mkt=fr-ca --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]