Dynamic content displays incorrectly in an IFRAME

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Elis
    New Member
    • Nov 2008
    • 3

    #1

    Dynamic content displays incorrectly in an IFRAME

    Hi,

    I'm developing a site that displays content from other sites in an IFRAME. Normally there's no problem, and the IFRAME faithfully reproduces what you would see if the content were in a parent frame.

    However, when the content includes Javascript HREFs, the display in the IFRAME gets garbled. As mentioned above, there's nothing I can do about the content because it comes from other sites; but is there a workaround that can be performed on the IFRAME end?

    Thanks in advance for your help!
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you give an example of content that gets garbled?

    Comment

    • Elis
      New Member
      • Nov 2008
      • 3

      #3
      Originally posted by acoder
      Can you give an example of content that gets garbled?
      In the page in question, the Javascript HREFs control a dynamic sliding menu. What happens in the IFRAME is that the menu displays statically, forcing itself into the content - and thus creating a gap between the content above and below.

      Thanks again in advance...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Yes, but I wanted to see an example of code, or possibly a link which demonstrates the problem.

        Comment

        • Elis
          New Member
          • Nov 2008
          • 3

          #5
          Originally posted by acoder
          Yes, but I wanted to see an example of code, or possibly a link which demonstrates the problem.
          My apologies for the delay - below is a segment of the code that displays statically in the IFRAME (notice the funny Javascript HREFs). Thanks again!

          Code:
          <UL id=menu>
          <LI class=mainlevel>
          <DIV class=mainlevelbox>
                 <A class=item1 id=mainlevel href="javascript: ;">About</A>
          <DIV class=underline></DIV></DIV>
          <LI class=mainlevel>
          <DIV class=mainlevelbox>
                  <A class=item1 id=mainlevel href="javascript: ;">Product Line</A>
          <DIV class=underline></DIV></DIV>
          <LI class=mainlevel>
          <DIV class=mainlevelbox>
                  <A class=item1 id=mainlevel href="javascript: ;">Contact us</A>
          <DIV class=underline></DIV></DIV>

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Those hrefs are not going to be much use. What's the original setting in the link hrefs?

            Comment

            Working...