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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 < [EMAIL PROTECTED]> 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
> > > [EMAIL PROTECTED]
> > >
> > > >
> > >
> >
> >
> > --
> > 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---