How to disable Iframe resize???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hash4sp
    New Member
    • Aug 2007
    • 55

    How to disable Iframe resize???

    Hi !

    I have a problem with my frame size. The frame is used to display results
    in form of html table generated dynamically. Sometimes the frame resizes
    its height according to the content in the page it loaded, due to which it
    disturbs the whole structure of my webpage. How do i restrict the frame so
    that it does not resize itself?

    Although i used the attributes height & width ... but still it resizes
    automatically??

    Thanks in advance

    Regards
    Hash
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Have you used a fixed height and width? Show your code.

    Comment

    • Nibbus
      New Member
      • Nov 2007
      • 18

      #3
      Originally posted by hash4sp
      Hi !

      I have a problem with my frame size. The frame is used to display results
      in form of html table generated dynamically. Sometimes the frame resizes
      its height according to the content in the page it loaded, due to which it
      disturbs the whole structure of my webpage. How do i restrict the frame so
      that it does not resize itself?

      Although i used the attributes height & width ... but still it resizes
      automatically??

      Thanks in advance

      Regards
      Hash

      Hello,

      try setting the noresize attribute.

      ex :
      <frame name="hiddenFra me" scr="about:blan k" noresize="nores ize" />

      Hope this helps

      Comment

      • hash4sp
        New Member
        • Aug 2007
        • 55

        #4
        Hi acoder, Nibus !

        I tried with the proposed noresize="nores ize", but still it didnt
        work....

        the code which i m using is as follows:

        Frame where the html page opens:
        ---------------------------------------------------
        [HTML]<iframe id="ResultFrame " name="ResultFra me" width="190" height="175" frameborder="1" noresize="nores ize" ></iframe>
        [/HTML]
        dynamically generated page:
        -----------------------------------------
        [HTML]<head><style>.t hfont{font-size:8pt;font-family:'Tahoma' } .tdfont{font-size:7pt;font-family:Tahoma}</style></head>
        <body onload='arsim_s earch();'><tabl e id='sim_search_ table' dir='rtl' border='2' style='display: none;border-collapse:collap se; border-bottom-color:#6ba849; border-right-color:#6ba849; border-left-color:#6ba849; border-top-color:#6ba849'> <tr><td colspan='6'styl e='font-size:16x'> <strong><u>%u06 46%u062A%u0627% u0626%u062C%20% u0627%u0644%u06 28%u062D%u062B</strong></u></td></tr> <tr class='thfont'> <th>%u0627%u064 4%u062D%u064A</th> <th>%u0627%u064 4%u0634%u0627%u 0631%u0639</th> <th>%u0631%u064 5%u0632%20%u062 8%u0631%u064A%u 062F%u0649</th> <th>%u0631%u064 2%u0645%20%u062 7%u0644%u0645%u 0628%u0646%u064 9</th> <th>%u0627%u064 4%u0631%u0642%u 0645%20%u0627%u 0644%u0625%u063 6%u0627%u0641%u 0649</th> <th>%u062A%u064 3%u0628%u064A%u 0631</th></tr> <tr class='tdfont' id='?objectid=9 8178&label=1299 1-3908-8522&minX=46.62 45015335&minY=2 4.5826972616&ma xX=46.624804135 1&maxY=24.58296 84882'> <td>%u062D%u064 A%20%u0627%u064 4%u0633%u0648%u 064A%u062F%u064 A%20%u0627%u064 4%u063A%u0631%u 0628%u064A</td> <td>%u0634%u062 7%u0631%u0639%2 0%u0627%u0644%u 0645%u0633%u064 4%u0645%u0629</td> <td>12991</td><td>3908</td><td>8522</td><td align=center><I MG SRC='../images/tool_zoomin.png ' alt='ZoomTo' onClick=ZoomToP ar(98178,'12991-3908-8522',46.624501 5335,24.5826972 616,46.62480413 51,24.582968488 2); style='cursor:h and';></td></tr> <tr class='tdfont' id='?objectid=9 9984&label=1299 1-3908-7692&minX=46.62 42629309&minY=2 4.5751039169&ma xX=46.624835223 2&maxY=24.57555 71956'> <td>%u062D%u064 A%20%u0627%u064 4%u0633%u0648%u 064A%u062F%u064 A%20%u0627%u064 4%u063A%u0631%u 0628%u064A</td> <td>%u0634%u062 7%u0631%u0639%2 0%u0627%u0628%u 064A%20%u0627%u 0644%u063A%u064 6%u0627%u0626%u 0645%20%u0627%u 0644%u0647%u064 5%u062F%u0627%u 0646%u064A</td> <td>12991</td><td>3908</td><td>7692</td><td align=center><I MG SRC='../images/tool_zoomin.png ' alt='ZoomTo' onClick=ZoomToP ar(99984,'12991-3908-7692',46.624262 9309,24.5751039 169,46.62483522 32,24.575557195 6); style='cursor:h and';></td></tr> <tr class='tdfont' id='?objectid=4 26258&label=129 91-3908-7620&minX=46.62 43850924&minY=2 4.5745293931&ma xX=46.624595233 6&maxY=24.57475 43781'> <td>%u062D%u064 A%20%u0627%u064 4%u0633%u0648%u 064A%u062F%u064 A%20%u0627%u064 4%u063A%u0631%u 0628%u064A</td> <td>%u0634%u062 7%u0631%u0639%2 0%u0642%u0631%u 0636%u0629</td><td>12991</td><td>3908</td><td>7620</td><td align=center><I MG SRC='../images/tool_zoomin.png ' alt='ZoomTo' onClick=ZoomToP ar(426258,'1299 1-3908-7620',46.624385 0924,24.5745293 931,46.62459523 36,24.574754378 1); style='cursor:h and';></td></tr></table></body>[/HTML]
        ----------------------------------------------------------------------------------------------------------

        Note: In the above code the escaped characters are for arabic text.

        regards,
        Hash
        Last edited by acoder; Nov 26 '07, 08:23 AM. Reason: Added code tags

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Try setting the overflow CSS property to "auto".

          Comment

          Working...