[SOLVED] Funky error

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

[SOLVED] Funky error

Post by pickle »

Hi there,

I'm getting a Javascript error generated (only on 2 computers out of about 50) that says this:

Code: Select all

I.E. Script Error
Line: 538
Char: 3
Error: The callee (server (not server application)) is not available and disappeared, all connections are invalid. The call did not execute.
Code: 0
URL: http://www.mydomain.ca/admin/fck/editor/dialog/fck_link.html
As you may have noticed, this is an error in a pre-written Rich Text editor called FCKEditor (FCK are the guy's initials by the way ;) )

Anyway, the javascript it's pointing to is in the function below, right near the bottom:

Code: Select all

function BrowseServer()
{
        // Set the browser window feature.
        var iWidth	= FCKConfig.LinkBrowserWindowWidth ;
        var iHeight	= FCKConfig.LinkBrowserWindowHeight ;

        var iLeft = (FCKConfig.ScreenWidth  - iWidth) / 2 ;
        var iTop  = (FCKConfig.ScreenHeight - iHeight) / 2 ;

        var sOptions = "toolbar=no,status=no,resizable=yes,dependent=yes" ;
        sOptions += ",width=" + iWidth ;
        sOptions += ",height=" + iHeight ;
        sOptions += ",left=" + iLeft ;
        sOptions += ",top=" + iTop ;

        if ( oEditor.FCKBrowserInfo.IsIE )
        {
               // The following change has been made otherwise IE will open the file 
               // browser on a different server session (on some cases):
               // http://support.microsoft.com/default.aspx?scid=kb;en-us;831678
               // by Simone Chiaretta.

               var oWindow = oEditor.window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ;

               oWindow.opener = window ; //<----- This is the line causing the error
        }
        else
        {		
                window.open( FCKConfig.LinkBrowserURL, "FCKBrowseWindow", sOptions ) ;
        }
}
Has anyone ever had this error before? The only thing I've been able to find out is that this error is generated when you're trying to focus (via Javascript) on a window that hasn't been created yet. However, I don't see that happening here.

I've tried to commend out the oWindow.opener = window line, and changed the line preceeding it to just call window.open but neither of those seemed to work.

The computers this is happening on are running IE6, though there are other computers running IE6 that don't have this problem.

Thanks for any insight.
Last edited by pickle on Fri Oct 21, 2005 10:48 am, edited 1 time in total.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Stupid users installing stupid third-party software that blocks stupid necessary popups and then calling stupid me to fix their stupid problem.

I can't believe I missed that. Popup blockers must reside in a part of my brain that my conscious self fears to tread.
Thanks a bunch!
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply