471,338 Members | 1,305 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

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.getElementById("ifrmDisplay");

innerDoc = (displayFrame.contentDocument) ?displayFrm.contentDocument :
displayFrm.contentWindow.document;

objToResize = (displayFrm.style) ? displayFrm.style : displayFrm;

objToResize.height = innerDoc.body.scrollHeight;
}

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>
Jul 23 '05 #1
4 1830
On Thu, 18 Nov 2004 13:39:17 +1300, khothikhe wrote:
can some one help me here coz this is really killing me!
Sure..
can..
Sentences always start with Upper Case letters. Always.
some one..
For future reference, it is a single word - 'someone'.
help me ..
Try not to sound needy, it lowers your chances of useful answers.
here ..
here,

An occasional break in the sentence assists the reader.
coz
Kewl spellings make you sound like an SMS teenager, please
use proper words wherever practical. The word is 'because'.
..this is really ..
Really? Really, truly?
..killing me!


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
Jul 23 '05 #2
Go fuck yourself!

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

"Andrew Thompson" <Se********@www.invalid> wrote in message
news:n7*****************************@40tude.net...
On Thu, 18 Nov 2004 13:39:17 +1300, khothikhe wrote:
can some one help me here coz this is really killing me!


Sure..
can..


Sentences always start with Upper Case letters. Always.
some one..


For future reference, it is a single word - 'someone'.
help me ..


Try not to sound needy, it lowers your chances of useful answers.
here ..


here,

An occasional break in the sentence assists the reader.
coz


Kewl spellings make you sound like an SMS teenager, please
use proper words wherever practical. The word is 'because'.
..this is really ..


Really? Really, truly?
..killing me!


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

Jul 23 '05 #3
On Thu, 18 Nov 2004 14:43:50 +1300, khothikhe wrote:
Go fuck yourself!


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
Jul 23 '05 #4
sounds like you have a mental problem!
go seek some professional help

"Andrew Thompson" <Se********@www.invalid> wrote in message
news:ym*****************************@40tude.net...
On Thu, 18 Nov 2004 14:43:50 +1300, khothikhe wrote:
Go fuck yourself!


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

Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Catherine Lynn Smith | last post: by
1 post views Thread by khothikhe | last post: by
5 posts views Thread by Paul Fi | last post: by
2 posts views Thread by paul | last post: by
1 post views Thread by Z1P2 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.