Heya, I''m trying to start an ajax call _for_ the underlying "main" window from a pop-up, but it doesn''t work. Firefox throws a strange error message: Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: localhost/javascripts/prototype.js :: anonymous :: line 190" data: no] Source File: localhost/javascripts/prototype.js Line: 190 I defined a javascript function (add_associated) in the main window which basically does the Ajax.Updater. This function gets called by the popup with: window.opener.add_associated(''param'', ''url'') It all works fine if I remove the self.close() after the function call in the pop-up! What I''m trying to do is a element chooser for a belongs_to/has_many association with hundreds of elements (so a simple drop down doesn''t work here). Any ideas how I can make this work? Or better, how the pop-up can give me a return value which the main window uses for an ajax call right after the pop-up is closed? Or even better, show me an ingenious alternative to solve this GUI problem :) thanks a lot Florian
Okay,> I''m trying to start an ajax call _for_ the underlying "main" window from > a pop-up, but it doesn''t work. Firefox throws a strange error message:I got it working with the following workaround: in the pop-up: window.opener.focus() hides the pop-up in the main window I put newwin.close() in the onComplete: part of the Ajax.Updater so this works for my case, but I''m still curious why the Ajax.Updater doesn''t work if I close the pop-up too early. thanks, Florian