JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 2nd, 2004, 09:08 AM
BurhanKhan BurhanKhan is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 44 BurhanKhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Thumbs down how to get height and width of loaded page in an iframe

hi:

can any body tell me how to get height and width of loaded page in an iframe.

Thanks
Burhan

Reply With Quote
  #2  
Old July 2nd, 2004, 09:56 AM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 6
As I wrote in the previous example you define the width and height of the iframe in the iframe-code:
<IFRAME SRC="foo.html" WIDTH=300 HEIGHT=100></IFRAME>
Normally you don't have to do anything of the width of the page which is loaded into the iframe, but sometimes you can get a horisontal-scrollbar if foo.html is to wide. Then you define the width of this page as you normally would do, ex. let's say the content in foo.html are placed in a table:
<table width="290" ><tr><td>...

Now the width of the table is less than the iframe and you shouldn't get at horisontal scrollbar.
__________________
Strictly CSS | Poker Cognac XO

Reply With Quote
  #3  
Old July 3rd, 2004, 05:18 AM
BurhanKhan BurhanKhan is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 44 BurhanKhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
i want to......

I don't want to remove horizontal scroll bar from iframe.

I want the page width of iframe for some other purpose.

Kindly some one know how to do this?

Burhan

Reply With Quote
  #4  
Old July 3rd, 2004, 05:28 AM
EiSa EiSa is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Norway
Posts: 184 EiSa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 24 sec
Reputation Power: 6
Did you read what I wrote? I have told you how to see the width and height of the iframe, in the other post I told you how to get the page-source of the page inside the iframe.

Just view the source of the webpage, the one with the iframe and you will see what widht and height there is used on the iframe, then open foo.html and view the source there and you will see if there are used any width/height definitions on that page.

Reply With Quote
  #5  
Old September 15th, 2004, 10:29 PM
alexsaves alexsaves is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 alexsaves User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Man you are daft

Did you read what HE wrote? Who wants to view some bloody page manually. He obviously is looking for a JS property.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > how to get height and width of loaded page in an iframe


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway