Hey,

Yes the js files in the header are normally linked on all the pages with 
script src... Not communicating with the window opener at all. I've set 
it up at http://www.kafic.net/pop/test.html for a better overview of the 
problem.

I can also confirm that this does work in ie7 but not the latest firefox?

Eric Harrison wrote:
> Forgive me if this is not the case with your code, but does the window
> that you're opening with window.open() have all of the javascript
> libraries sourced in with script tags? Each new window has a fresh
> window object created for it (unless otherwise hacked). If your
> opening window has Scriptaculous loaded but the new window is
> lightweight and doesn't have it sourced in inside that window's head,
> then it won't be available to that window.
>
> Now, this is all speculation as I have no idea what your code actually has...
>
> Hope this helps...
>
> -E
>
> On 12/15/06, Danijel K. <[EMAIL PROTECTED]> wrote:
>   
>> Hi all,
>>
>> I'll try to keep it short.
>>
>> I have a simple window.open(); popup. Inside I have a hidden comment div
>> and a link:
>>
>> <a href="javascript:;" onclick="Effect.toggle('comment-dialog',
>> 'appear');">add new comment</a>
>> <div id="comment-dialog" style="display:none;">....</div>
>>
>>
>> But there seems to be a problem which I can't locate.
>>
>>
>> Scenario: I open the window from the parent. Click the 'add new comment'
>> link. The following error occurs:
>> this.loop.bind is not a function :: error on line 238 in line effects.js
>>
>> - snip from effects.js -
>>     if(!this.interval)
>>         this.interval = setInterval(this.loop.bind(this), 40);
>> - end snip .
>>
>> - debug info shows -
>>     this -> loop -> (prototype : Object)
>> - end debug -
>>
>>
>> And nothing else insise the loop Obj. When I reload the popup (F5) and
>> click the same link, the link then works?
>>
>> - debug info shows -
>>     this -> loop -> (prototype : Object), (), (bind), (bindAsEventListener)
>> - end debug -
>>
>>
>> Somehow the bind and bindAsEvent.. got added to the stack?
>> Hopefully someone can explain this to me and maybe help me out.
>>
>> Thanks
>> /D
>>
>>
>>     
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to