codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  IFRAME question  ferroariel at 12:53 on Wednesday, September 22, 2010
 

I've got an IFRAME
it loads a page with variable contents
I need to know the WIDTH of the body of that page
I'm using offsetWidth and offsetHeight

var BODYWIDTH = 0
var dyniframe = document.getElementById("Nvg")
if (dyniframe && !window.opera) {
if (dyniframe.contentDocument && dyniframe.contentDocument.body.offsetHeight) //ns6 syntax
BODYWIDTH = dyniframe.contentDocument.body.offsetHeight; //+ FFextraHeight;
else if (dyniframe.Document && dyniframe.Document.body.scrollHeight) //ie5+ syntax
BODYWIDTH = dyniframe.Document.body.scrollHeight;
}
alert("The WIDTH of the body of the page inside the iframe is "+ BODYWIDTH)


This is weird....

offsetHeight returns the height of the document body
offsetWidth returns the width of the iframe !!!!!!! (??????????)

Please, what am i doin wrong??

  Re: IFRAME question  tongzhanshang at 02:27 on Friday, May 27, 2011
 

wherein those "surrounding the game player can also join in one way or the other to the gameplay."[49] While the original DSi was specifically designed for individual use, Iwata suggested Nintendo 3DS
r4
R4DS
r4i-sdhc
R4I
acekard
dstt
iedge
m3i zero
ez flash
cyclods
supercard
r4i gold
x360key
ps3 user cheat
r4 gold
r4 sdhc
acekard 2i
ttds
ezflash 3 in 1
supercard dstwo
nds card
acekard 2i buy
acekard 2
ps3 move
ps3 controller
ps3 games
ps3 wireless controller
ps3 move accessories
cheap ps3 controller
r4 card
ps3 games hdd
3ds roms
r4ds card
R4
R4I
acekard 2i
r4i-sdhc
r4i gold
dstt
iedge
m3i zero
ez flash
R4DS
x360key
ps3 user cheat
r4 gold
r4 sdhc
acekard
ttds
ez flash 3 in 1
nds card
cyclods
supercard
supercard dstwo
dstwo
cyclods evolution
supercard dsonei
ps3 move
ps3 controller
ps3 games
ps3 wireless controller
ps3 move accessories
cheap ps3 controller
ps3 hdd
ps3 games hdd
r4 card
ps3 jailbreak
playstation move
playstation 3 games
ps3 hard drive









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: C++ Beginner question
•  Re: onmouseover change image and text
•  indexing hard disk files
•  Re: Can javascript preload swf files?
•  Re: IFRAME question
•  Re: I think I need a JavaScript file For Image Rotator
•  Re: display new url each day
•  Re: Scrolling Issue
•  Re: Disabling ActiveX dialog box in IE


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011