Mark Reginald James
2007-Jan-23 05:15 UTC
Using Firefox 2.0, Ajax fails in new windows opened using windows.open
Has anyone else seen this problem?:
Using Firefox 2.0 on Linux, if a window is opened using window.open,
and that window becomes a new window/tab rather than replacing the
content of an existing named window, then Ajax requests made in that
window do not function.
The errors reported by Prototype are
TypeError: (function() {this.respondToReadyState(1);}.bind is not a function
for asynchronous Ajax, and
TypeError: this.onStateChange.bind is not a function
for synchronous Ajax.
Javascript seems unable to find the bind function: inserting
alert(Function.bind);
displays the expected bind function text, however an
alert(''bind'');
inserted at the start of the bind function definition is never displayed.
Feels like a Firefox bug, but I''ve opened a Prototype ticket:
http://dev.rubyonrails.org/ticket/7317
If you''d like a demo showing that things fail in a new named window,
but work when the window.open refreshes the named window, then
let me know and I''ll set a publicly-accessible one on my server.
Thanks.
--
We develop, watch us RoR, in numbers too big to ignore.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Mark Reginald James
2007-Jan-23 06:12 UTC
[RESOLVED] Re: Using Firefox 2.0, Ajax fails in new windows opened using windows.open
Jonathan Viney suggested this was a problem with Firefox 2.0, and was fixed in 2.0.0.1. He was right. Thanks Jonathan. -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---