Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE IFRAME w/XML HIDES OTHER (DHTML) CONTENT

    I am having problems displaying DHTML content (spiffycalendar freeware) that overlaps an IFRAME which contains XML content. I have attached a zipfile with the necessary files to illustrate the problem. I am using IE7 and Apache Tomcat 6.0 and the parent.html page needs to be displayed by way of an HTTP request. Loading the html file into the brower directly does not setup the problem correctly.


    1) parent.html contains the calendar widget and an IFRAME
    2) iframe.html contains a simple XML document
    3) Calendar widget: spiffyCal.js and spiffyCal.css (you can download from http://simplythebest.net/scripts/DHT...script_48.html)

    if you don't want to install the calendar widget then any dhtml div should do the same.

    when the calendar is displayed it gets hidden behind the IFRAME in the areas that overlap. If you change the IFRAME content from an XML to an HTML source then the overlapping problem goes away.

    Can anyone tell me how to avoid this problem without having to resort to rendering the XML to HTML before displaying it in the IFRAME.

    Thanks.
    Attached Files Attached Files

  • #2
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Anyone??
    Last edited by rangelot; 06-11-2009 at 11:17 PM.

  • #3
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I encountered a more complex version of this in the main framework that my company develops, but I haven't really been able to find more information about it on the internet.

    It seems that in IE (even IE7 and IE8), iframes with XML-based content (delivered with content-type="text/xml", could be either an unformatted XML document or an XML document transformed into HTML with <?xml-stylesheet?>) are windowed elements. Just like SELECT elements in IE6, they will be rendered on top of other non-windowed elements. This doesn't happen in IE7 with HTML-based iframes, so I don't know why, but it seems XML-based iframes are a fundamentally different type of element in IE.

    The workaround for your case is the same as the workaround for popups in IE6 - create an iframe "shim" for your calendar, position it to be the same size as the calendar, and give it a z-index one smaller than the calendar's.

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the suggestion, I wish it had worked.
    website update


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •