Problem with custom Popup in Insert Image Dialog in IE

Last post 02-09-2008, 2:47 AM by Adam. 2 replies.
Sort Posts: Previous Next
  •  01-29-2008, 1:55 AM 36612

    Problem with custom Popup in Insert Image Dialog in IE

    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.
  •  02-08-2008, 4:34 AM 36888 in reply to 36612

    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?
  •  02-09-2008, 2:47 AM 36899 in reply to 36612

    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.
     
    It's a DHTML issue.
     
    Please check the following article:
     
    How to pass objects to dialog boxes:
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML