problem with iframe resizing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • khothikhe

    problem with iframe resizing

    can some one help me here coz this is really killing me!

    the problem is, i have this javascript code in my aspx page that i want it
    to work on almost all browsers, especially opera and safari :

    function resize(){
    displayFrm = document.getEle mentById("ifrmD isplay");

    innerDoc = (displayFrame.c ontentDocument) ?displayFrm.con tentDocument :
    displayFrm.cont entWindow.docum ent;

    objToResize = (displayFrm.sty le) ? displayFrm.styl e : displayFrm;

    objToResize.hei ght = innerDoc.body.s crollHeight;
    }

    the code above gets called every time a new page is loaded inside the iframe
    (ifrmDisplay) what its doing is resizing the iframe so it can have the same
    size as the page inside it, so i can eliminate the need for vertical
    scroller for the iframe, i assumed that it works on opera and IE at the same
    time, when i tried it out, it worked on IE but not on opera. after lot of
    time in researching how i can get workaround this issue with opera, that is
    the best possible solution i have and yet it doesnt work. so i gave up and
    asking you if you can help me out here , coz this is jst driving me crazy!

    the problem is im not a javascript expert, to be honest i jst started doing
    javascripts about two days ago, that is why im in need for help

    by the way, here is inner html for the iframe if its any use

    <iframe id="ifrmDisplay " style="Z-INDEX: 99; LEFT: 187px; WIDTH: 567px;
    POSITION: absolute; TOP: 136px; HEIGHT: 408px" src="" scrolling="no"
    onload="resize( );">
    </iframe>


  • Andrew Thompson

    #2
    Re: problem with iframe resizing

    On Thu, 18 Nov 2004 13:39:17 +1300, khothikhe wrote:
    [color=blue]
    > can some one help me here coz this is really killing me![/color]

    Sure..
    [color=blue]
    > can..[/color]

    Sentences always start with Upper Case letters. Always.
    [color=blue]
    > some one..[/color]

    For future reference, it is a single word - 'someone'.
    [color=blue]
    > help me ..[/color]

    Try not to sound needy, it lowers your chances of useful answers.
    [color=blue]
    > here ..[/color]

    here,

    An occasional break in the sentence assists the reader.
    [color=blue]
    > coz[/color]

    Kewl spellings make you sound like an SMS teenager, please
    use proper words wherever practical. The word is 'because'.
    [color=blue]
    > ..this is really ..[/color]

    Really? Really, truly?
    [color=blue]
    >..killing me![/color]

    A good way to get help on groups is *not* to imply that the art
    or craft that is the topic of discussion of the group is killing
    you. It can be taken the wrong way.

    For the expert answers, I leave you to the experts.

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.LensEscapes.com/ Images that escape the mundane

    Comment

    • khothikhe

      #3
      Re: problem with iframe resizing

      Go fuck yourself!

      if you don't have an answer to the problem then why reply with your stupid
      comments!

      "Andrew Thompson" <SeeMySites@www .invalid> wrote in message
      news:n7ae0n45i8 sq.1psa30ovyten w$.dlg@40tude.n et...[color=blue]
      > On Thu, 18 Nov 2004 13:39:17 +1300, khothikhe wrote:
      >[color=green]
      > > can some one help me here coz this is really killing me![/color]
      >
      > Sure..
      >[color=green]
      > > can..[/color]
      >
      > Sentences always start with Upper Case letters. Always.
      >[color=green]
      > > some one..[/color]
      >
      > For future reference, it is a single word - 'someone'.
      >[color=green]
      > > help me ..[/color]
      >
      > Try not to sound needy, it lowers your chances of useful answers.
      >[color=green]
      > > here ..[/color]
      >
      > here,
      >
      > An occasional break in the sentence assists the reader.
      >[color=green]
      > > coz[/color]
      >
      > Kewl spellings make you sound like an SMS teenager, please
      > use proper words wherever practical. The word is 'because'.
      >[color=green]
      > > ..this is really ..[/color]
      >
      > Really? Really, truly?
      >[color=green]
      > >..killing me![/color]
      >
      > A good way to get help on groups is *not* to imply that the art
      > or craft that is the topic of discussion of the group is killing
      > you. It can be taken the wrong way.
      >
      > For the expert answers, I leave you to the experts.
      >
      > --
      > Andrew Thompson
      > http://www.PhySci.org/codes/ Web & IT Help
      > http://www.PhySci.org/ Open-source software suite
      > http://www.1point1C.org/ Science & Technology
      > http://www.LensEscapes.com/ Images that escape the mundane[/color]


      Comment

      • Andrew Thompson

        #4
        Re: problem with iframe resizing

        On Thu, 18 Nov 2004 14:43:50 +1300, khothikhe wrote:
        [color=blue]
        > Go fuck yourself![/color]

        Well tut-tut. Your mum should wash your mouth out with soap.
        But at least you found your shift key, that's progress. ;-)

        --
        Andrew Thompson
        http://www.PhySci.org/codes/ Web & IT Help
        http://www.PhySci.org/ Open-source software suite
        http://www.1point1C.org/ Science & Technology
        http://www.LensEscapes.com/ Images that escape the mundane

        Comment

        • khothikhe

          #5
          Re: problem with iframe resizing

          sounds like you have a mental problem!
          go seek some professional help

          "Andrew Thompson" <SeeMySites@www .invalid> wrote in message
          news:ymdpc5ae4g tn$.n4d6pt54f4m z$.dlg@40tude.n et...[color=blue]
          > On Thu, 18 Nov 2004 14:43:50 +1300, khothikhe wrote:
          >[color=green]
          > > Go fuck yourself![/color]
          >
          > Well tut-tut. Your mum should wash your mouth out with soap.
          > But at least you found your shift key, that's progress. ;-)
          >
          > --
          > Andrew Thompson
          > http://www.PhySci.org/codes/ Web & IT Help
          > http://www.PhySci.org/ Open-source software suite
          > http://www.1point1C.org/ Science & Technology
          > http://www.LensEscapes.com/ Images that escape the mundane[/color]


          Comment

          Working...