Re: Problem with custom Popup in Insert Image Dialog in IE

  •  02-08-2008, 4:34 AM

    Re: Problem with custom Popup in Insert Image Dialog in IE

    SaferSephy:
    I have implemented CuteEditor in my CMS but run into the following problem:
     
    When a user wants to add a image, he or she clicks on the "Insert Image" button in CE. In that dialog i made an extra button which when clicked on opens a popup where you can choose an image from a custom list. When chosen the popup automatically closes and builds up the link in the TargetUrl field.
     
    So in this situation there are 3 windows open:
     
    1. Parent window - The window with the actual cute editor
     
    2. Dialog window - The Insert Image Dialog
     
    3. Popup window - The custom image selector
     
    When the Parent window is the only IE window everything goes right but when it's the 2nd or higher the session of the parent window isn't passed thru to the Popup window.
     
    This is an known bug in IE6 but still exists in IE7. Microsoft wrote an article about it here and also describes a workaround:
     
     
    I recreated the example code wich can be viewed here to see the problem, and workaround, in action:
     
     
    To work around this behavior, pass the window object of the parent of the dialog box into the dialog box, and then use that object to open the new window.
     
    Problem is that as far as i know i cannot influence the way the Insert Image dialog is called and because of that cannot work around this problem.
     
    Does anyone have an idea. Or maybe is it possible to build the workaround into CE, because i can't imagine that i'm the only one with this problem.
     
    anyone? Or do i need to email this since i've a developer license?
View Complete Thread