Here's the whole js function.  It seems prety straightforward but my
brain has been proven to be made of oatmeal more than once.  Hoping
thats it...

function OpenFileBrowser( url, width, height )
{
        // oEditor must be defined.
        
        var iLeft = ( oEditor.FCKConfig.ScreenWidth  - width ) / 2 ;
        var iTop  = ( oEditor.FCKConfig.ScreenHeight - height ) / 2 ;

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

        // The "PreserveSessionOnFileBrowser" because the above code could be
        // blocked by popup blockers.
        if ( oEditor.FCKConfig.PreserveSessionOnFileBrowser &&
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( url, 'FCKBrowseWindow', 
sOptions ) ;
                if ( oWindow )
                        oWindow.opener = window ;
                else
                        alert( oEditor.FCKLang.BrowseServerBlocked ) ;
    }
    else
                window.open( url, 'FCKBrowseWindow', sOptions ) ;
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257669
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to