Hi, I don''t know if it''s me ... I have a big issue with Firefox 2 and Firebug... My code that was working no longer works: 1. I have window1 2. I popup a new window2 from window1 3. The window2 do Event.observe(window, ''load'' , Test.initTest.bind(this)); There is an exception in FireBug with: "bind() is not a function" -> I got the same error with Event onclick -> If I refresh the popuped page it works ... really strange ??? Any Idea ? Help ? Best Regards -- Jean-Philippe Encausse Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 Do it Once, Use it Twice ~ Do it Twice, Make It Once --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Jean-Philippe, Jean-Philippe Encausse a écrit :> 3. The window2 do Event.observe(window, ''load'' , Test.initTest.bind(this)); > > There is an exception in FireBug with: "bind() is not a function"Please show us the declaration for Test and its initTest member. Also, where does this Event.observe call take place? What is "this" at this point? -- Christophe Porteneuve aka TDD 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 -~----------~----~----~----~------~----~------~--~---
Well, - It happend with multiple code, "Test" is only a Sample to explain. - There''s no error under FF1.5 nor IE 6 or IE 7 - The code is in a test.js file declared in the <head></head> tag - In fact I only do: (code from my memory) if (!window.Test) { var Test = new Object(); } Object.extend(Test,{ initTest: function(){ alert(''HelloWorld''); this.doStuff() }, doStuff: function() }); Event.observe(window, ''load'' , Test.initTest.bind(Test)); - It''s a silly sample but it explain the problem.. - The problem happend when I popup a new window using window.open(...) containing the above code. Maybe it is a side effect of an extension o FF2 or a new feature ? Best Regards On 10/27/06, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> > Hey Jean-Philippe, > > Jean-Philippe Encausse a écrit : > > 3. The window2 do Event.observe(window, ''load'' , Test.initTest.bind(this)); > > > > There is an exception in FireBug with: "bind() is not a function" > > Please show us the declaration for Test and its initTest member. Also, > where does this Event.observe call take place? What is "this" at this > point? > > -- > Christophe Porteneuve aka TDD > tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > >-- Jean-Philippe Encausse - R&D Jalios SA Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 Do it Once, Use it Twice ~ Do it Twice, Make It Once --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I discovered the same behavior. The popup content was throwing the error " Object.extend cannot be resolved". It does not appear if you reload the window manually when its opened (using F5). Strange! The script imports for prototype and scriptaculous are correctly set. Keep me informed, if you find out something helpful! best regards, sigi On 10/27/06, Jean-Philippe Encausse <Jp-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org> wrote:> > > Well, > - It happend with multiple code, "Test" is only a Sample to explain. > - There''s no error under FF1.5 nor IE 6 or IE 7 > - The code is in a test.js file declared in the <head></head> tag > - In fact I only do: (code from my memory) > > if (!window.Test) { > var Test = new Object(); > } > > Object.extend(Test,{ > > initTest: function(){ > alert(''HelloWorld''); > this.doStuff() > }, > > doStuff: function() > > }); > > > Event.observe(window, ''load'' , Test.initTest.bind(Test)); > > - It''s a silly sample but it explain the problem.. > - The problem happend when I popup a new window using window.open(...) > containing the above code. > > Maybe it is a side effect of an extension o FF2 or a new feature ? > > Best Regards > > On 10/27/06, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > > Hey Jean-Philippe, > > > > Jean-Philippe Encausse a écrit : > > > 3. The window2 do Event.observe(window, ''load'' , Test.initTest.bind > (this)); > > > > > > There is an exception in FireBug with: "bind() is not a function" > > > > Please show us the declaration for Test and its initTest member. Also, > > where does this Event.observe call take place? What is "this" at this > > point? > > > > -- > > Christophe Porteneuve aka TDD > > tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > > > > > > > > -- > Jean-Philippe Encausse - R&D Jalios SA > Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net > Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 > Do it Once, Use it Twice ~ Do it Twice, Make It Once > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Exactly ! Unfortunately I have no idea. May be it is a bug of FF2 that will be corrected later ? On 10/30/06, Siegfried Puchbauer <siegfried.puchbauer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I discovered the same behavior. The popup content was throwing the error > "Object.extend cannot be resolved". It does not appear if you reload the > window manually when its opened (using F5). Strange! The script imports for > prototype and scriptaculous are correctly set. Keep me informed, if you find > out something helpful! > > best regards, > > sigi > > > On 10/27/06, Jean-Philippe Encausse <Jp-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org> wrote: > > > > > > Well, > > - It happend with multiple code, "Test" is only a Sample to explain. > > - There''s no error under FF1.5 nor IE 6 or IE 7 > > - The code is in a test.js file declared in the <head></head> tag > > - In fact I only do: (code from my memory) > > > > if (!window.Test) { > > var Test = new Object(); > > } > > > > Object.extend(Test,{ > > > > initTest: function(){ > > alert(''HelloWorld''); > > this.doStuff () > > }, > > > > doStuff: function() > > > > }); > > > > > > Event.observe(window, ''load'' , Test.initTest.bind(Test)); > > > > - It''s a silly sample but it explain the problem.. > > - The problem happend when I popup a new window using window.open(...) > > containing the above code. > > > > Maybe it is a side effect of an extension o FF2 or a new feature ? > > > > Best Regards > > > > On 10/27/06, Christophe Porteneuve < tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > > > > Hey Jean-Philippe, > > > > > > Jean-Philippe Encausse a écrit : > > > > 3. The window2 do Event.observe(window, ''load'' , > Test.initTest.bind(this)); > > > > > > > > There is an exception in FireBug with: "bind() is not a function" > > > > > > Please show us the declaration for Test and its initTest member. Also, > > > where does this Event.observe call take place? What is "this" at this > > > point? > > > > > > -- > > > Christophe Porteneuve aka TDD > > > tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org > > > > > > > > > > > > > > > > -- > > Jean-Philippe Encausse - R&D Jalios SA > > Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com > > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net > > Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 > > Do it Once, Use it Twice ~ Do it Twice, Make It Once > > > > > > > > > > >-- Jean-Philippe Encausse - R&D Jalios SA Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 90 15 Do it Once, Use it Twice ~ Do it Twice, Make It Once --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
You guys might be interested in this discussion here: http://dev.rubyonrails.org/ticket/6481 best, thomas Am 31.10.2006 um 09:38 schrieb Jean-Philippe Encausse:> > Exactly ! > Unfortunately I have no idea. May be it is a bug of FF2 that will be > corrected later ? > > On 10/30/06, Siegfried Puchbauer <siegfried.puchbauer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: >> I discovered the same behavior. The popup content was throwing the >> error >> "Object.extend cannot be resolved". It does not appear if you >> reload the >> window manually when its opened (using F5). Strange! The script >> imports for >> prototype and scriptaculous are correctly set. Keep me informed, >> if you find >> out something helpful! >> >> best regards, >> >> sigi >> >> >> On 10/27/06, Jean-Philippe Encausse <Jp-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org> wrote: >>> >>> >>> Well, >>> - It happend with multiple code, "Test" is only a Sample to explain. >>> - There''s no error under FF1.5 nor IE 6 or IE 7 >>> - The code is in a test.js file declared in the <head></head> tag >>> - In fact I only do: (code from my memory) >>> >>> if (!window.Test) { >>> var Test = new Object(); >>> } >>> >>> Object.extend(Test,{ >>> >>> initTest: function(){ >>> alert(''HelloWorld''); >>> this.doStuff () >>> }, >>> >>> doStuff: function() >>> >>> }); >>> >>> >>> Event.observe(window, ''load'' , Test.initTest.bind(Test)); >>> >>> - It''s a silly sample but it explain the problem.. >>> - The problem happend when I popup a new window using window.open >>> (...) >>> containing the above code. >>> >>> Maybe it is a side effect of an extension o FF2 or a new feature ? >>> >>> Best Regards >>> >>> On 10/27/06, Christophe Porteneuve < tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: >>>> >>>> Hey Jean-Philippe, >>>> >>>> Jean-Philippe Encausse a écrit : >>>>> 3. The window2 do Event.observe(window, ''load'' , >> Test.initTest.bind(this)); >>>>> >>>>> There is an exception in FireBug with: "bind() is not a function" >>>> >>>> Please show us the declaration for Test and its initTest >>>> member. Also, >>>> where does this Event.observe call take place? What is "this" >>>> at this >>>> point? >>>> >>>> -- >>>> Christophe Porteneuve aka TDD >>>> tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org >>>> >>>>> >>>> >>> >>> >>> -- >>> Jean-Philippe Encausse - R&D Jalios SA >>> Jp [at] encausse.net - http://www.encausse.com - http:// >>> www.jalias.com >>> GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net >>> Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 >>> 90 15 >>> Do it Once, Use it Twice ~ Do it Twice, Make It Once >>> >>> >>>>> >>> >> > > > -- > Jean-Philippe Encausse - R&D Jalios SA > Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net > Mob: +33 6 82 12 56 99 Jalios: +33 1 39 23 92 83 Tel: +33 1 39 18 > 90 15 > Do it Once, Use it Twice ~ Do it Twice, Make It Once > > >-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---