Hi, I don''t know what might cause this, but maybe you do. If I put the code below in a html-file and open it in a popup. I get an error on row 129 in the latest prototype.js bundled with 1.6.5. popup.html: <script type="text/javascript" src="/inc/api/prototype.js"></script> <script type="text/javascript"> Event.observe(window, "load", function() { new PeriodicalExecuter(function() { alert("hello!"); }, 10); }); </script> kicker.html <input type="button" onclick="window.open(''http://localhost/popup.html'', ''chat'', ''width=600,height=500,resizable=yes,status=yes'')" value="Popup" /> The error I get is: "this.onTimerEvent.bind is not a function" Anyone else got this problem, or can replicate it, and even perhaps has a solution, I''d be very happy! =) PS. If I reload the popup after it''s loaded, it works just fine. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey Glenn, Glenn Nilsson a écrit :> I don''t know what might cause this, but maybe you do. If I put the > code below in a html-file and open it in a popup. I get an error on > row 129 in the latest prototype.js bundled with 1.6.5.OK, what exact browser are you using?> popup.html: > <script type="text/javascript" src="/inc/api/prototype.js"></script> > <script type="text/javascript"> > Event.observe(window, "load", function() { > new PeriodicalExecuter(function() { > alert("hello!"); > }, 10); > }); > </script>Looks good enough...> kicker.html > <input type="button" > onclick="window.open(''http://localhost/popup.html'', ''chat'', > ''width=600,height=500,resizable=yes,status=yes'')" value="Popup" />OK so far.> The error I get is: > > "this.onTimerEvent.bind is not a function"Hmm, obviously Function extension didn''t occur yet. That''s odd.> Anyone else got this problem, or can replicate it, and even perhaps > has a solution, I''d be very happy! =)Can you please put some minimalistic example online for us to test and tinker with?> PS. If I reload the popup after it''s loaded, it works just fine.I bet it does :-) It''s clearly an issue with load detection within a popup. However, I see nothing related in Prototype''s Trac. So we''ll have to investigate. -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for answering!> > I don''t know what might cause this, but maybe you do. If I put the > > code below in a html-file and open it in a popup. I get an error on > > row 129 in the latest prototype.js bundled with 1.6.5. > > OK, what exact browser are you using?Sorry, forgot that =) FF 2.0 (20061010)> > The error I get is: > > > > "this.onTimerEvent.bind is not a function" > > Hmm, obviously Function extension didn''t occur yet. That''s odd. > > > Anyone else got this problem, or can replicate it, and even perhaps > > has a solution, I''d be very happy! =) > > Can you please put some minimalistic example online for us to test and > tinker with?Of course! http://wailqill.com/code/ff-popup-load/kicker.html> > PS. If I reload the popup after it''s loaded, it works just fine. > > I bet it does :-) It''s clearly an issue with load detection within a > popup. However, I see nothing related in Prototype''s Trac. So we''ll > have to investigate.Debugging it is quite hard with firebug. The breakpoints don''t wanna break. btw: downloadable minimal testcase: http://wailqill.com/code/ff-popup-load/ff-popup-load.zip Thanks a bunch, Glenn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Glenn Nilsson a écrit :> Sorry, forgot that =) FF 2.0 (20061010)''K.> Of course! > > http://wailqill.com/code/ff-popup-load/kicker.htmlI''m sorry to be difficult, but this URL just won''t load. It tries, tries, tries, then gives up. This is *not* a proxy issue, I do get to the server--but the server stalls.> Debugging it is quite hard with firebug. The breakpoints don''t wanna break.You need to toggle debug mode for your breakpoints to become active, did you do that? It''s not very obvious from the UI, you need to fiddle with it or... read the doc ;-) -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> > http://wailqill.com/code/ff-popup-load/kicker.html > > I''m sorry to be difficult, but this URL just won''t load. It tries, > tries, tries, then gives up. This is *not* a proxy issue, I do get to > the server--but the server stalls.Weird, but then I attach the zip i mentioned =) /Glenn --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Ok, I think I found the problem. AdBlock Plus does something nasty with the DOM. Disabling it results in everything working. But when itäs enabled, it didnät block the inclusion of prototype.js, it''s loaded, but somehow there''s a conflict. And I can''t fint a way to detect it AdBlock is installed, couldn''t find any global variables or such that is added by the extension. Thanks anyway, Glenn On 11/11/06, Glenn Nilsson <glenn.nilsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > http://wailqill.com/code/ff-popup-load/kicker.html > > > > I''m sorry to be difficult, but this URL just won''t load. It tries, > > tries, tries, then gives up. This is *not* a proxy issue, I do get to > > the server--but the server stalls. > > Weird, but then I attach the zip i mentioned =) > > /Glenn > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Is it this the prototype/Firefox 2.0 bug? "Object.extend problem in Firefox 2.0 RC3" http://dev.rubyonrails.org/ticket/6481 Also posted as a bug in Firefox: "Setting Function.prototype does not work in pop-up windows (Firefox 2)" https://bugzilla.mozilla.org/show_bug.cgi?id=357947 TAG On Nov 11, 2006, at 7:59 AM, Glenn Nilsson wrote:> > Thanks for answering! > >>> I don''t know what might cause this, but maybe you do. If I put the >>> code below in a html-file and open it in a popup. I get an error on >>> row 129 in the latest prototype.js bundled with 1.6.5. >> >> OK, what exact browser are you using? > > Sorry, forgot that =) FF 2.0 (20061010) > >>> The error I get is: >>> >>> "this.onTimerEvent.bind is not a function" >> >> Hmm, obviously Function extension didn''t occur yet. That''s odd. >> >>> Anyone else got this problem, or can replicate it, and even perhaps >>> has a solution, I''d be very happy! =) >> >> Can you please put some minimalistic example online for us to test >> and >> tinker with? > > Of course! > > http://wailqill.com/code/ff-popup-load/kicker.html > >>> PS. If I reload the popup after it''s loaded, it works just fine. >> >> I bet it does :-) It''s clearly an issue with load detection within a >> popup. However, I see nothing related in Prototype''s Trac. So we''ll >> have to investigate. > > Debugging it is quite hard with firebug. The breakpoints don''t > wanna break. > > btw: downloadable minimal testcase: > > http://wailqill.com/code/ff-popup-load/ff-popup-load.zip > > Thanks a bunch, > Glenn > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It certainly sounds like it, but I actually got it working by disabling the AdBlock-extension. That is weird, it shouldn''t work at all. I tested it with some friends, and it worked for all that didn''t have the extension, whereas it didn''t work for those who had it. So I disabled every extension and enabled it until didn''t work. AdBlock Plus. Tested disable and enable just that one again, and it was the crook indeed. Thanks for find the bug. On 11/13/06, Tom Gregory <tomg-PGZyUNKar/Q@public.gmane.org> wrote:> > Is it this the prototype/Firefox 2.0 bug? > > "Object.extend problem in Firefox 2.0 RC3" > http://dev.rubyonrails.org/ticket/6481 > > Also posted as a bug in Firefox: > "Setting Function.prototype does not work in pop-up windows (Firefox 2)" > https://bugzilla.mozilla.org/show_bug.cgi?id=357947 > > > > TAG > > On Nov 11, 2006, at 7:59 AM, Glenn Nilsson wrote: > > > > > Thanks for answering! > > > >>> I don''t know what might cause this, but maybe you do. If I put the > >>> code below in a html-file and open it in a popup. I get an error on > >>> row 129 in the latest prototype.js bundled with 1.6.5. > >> > >> OK, what exact browser are you using? > > > > Sorry, forgot that =) FF 2.0 (20061010) > > > >>> The error I get is: > >>> > >>> "this.onTimerEvent.bind is not a function" > >> > >> Hmm, obviously Function extension didn''t occur yet. That''s odd. > >> > >>> Anyone else got this problem, or can replicate it, and even perhaps > >>> has a solution, I''d be very happy! =) > >> > >> Can you please put some minimalistic example online for us to test > >> and > >> tinker with? > > > > Of course! > > > > http://wailqill.com/code/ff-popup-load/kicker.html > > > >>> PS. If I reload the popup after it''s loaded, it works just fine. > >> > >> I bet it does :-) It''s clearly an issue with load detection within a > >> popup. However, I see nothing related in Prototype''s Trac. So we''ll > >> have to investigate. > > > > Debugging it is quite hard with firebug. The breakpoints don''t > > wanna break. > > > > btw: downloadable minimal testcase: > > > > http://wailqill.com/code/ff-popup-load/ff-popup-load.zip > > > > Thanks a bunch, > > Glenn > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 13, 1:37 pm, "Glenn Nilsson" <glenn.nils...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> AdBlockPlus does something nasty with the DOM.No, it doesn''t. The problem actually sounds like https://bugzilla.mozilla.org/show_bug.cgi?id=355161. You can try download a current Firefox 2.0 nightly from http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla1.8/ and check whether your problem is fixed there. -- Wladimir Palant Adblock Plus developer (http://adblockplus.org/) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- Cross Browser Popups
- Next script.aculo.us release, help needed
- Does Ajax.PeriodicalUpdater have a shield against multiple parallel executions?
- RE: Prototype: correct useage of onComplete withAjax.PeriodicalUpdater
- dynamically change frequency in periodicalUpdater