Topic: Any body got solution about resizing iframe? (Read 1809 times)
My name is Bong, James Bong
Gender:
Posts: 10
76 credits Members referred : 0
« on: Sep 17, 2006, 08:50:24 PM »
Any body has solution to resizing iframe based on the size of its external content (different domain)?
I know there is a denied accessing to the external content. So far I found some way using cookies but need to fill some code inside the loaded content where as I am talking about loading any external links into the frame.
First you have to get the size of other website. I am not sure how you would do that.
Just hope any one has a got the solution.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 7975
40807 credits Members referred : 3
« Reply #1 on: Sep 17, 2006, 08:52:38 PM »
I don't know what exactly you want to do, but I think if you use AJAX you can overcome this.
It needs some work around, propably a book would also help (BTW check the forum's latest contest, we give an AJAX related book )
All right, hope I'll get the real idea here, I have few months stack on this case..
aka J Love Community Supporter?
Bill Gates is my home boy
Gender:
Posts: 884
1636 credits Members referred : 4
« Reply #7 on: Sep 18, 2006, 07:30:35 AM »
if you place the iframe in a table layout you can set the dimensions for the column/row that it is placed in, then the iframe to 100% by 100% and it will stretch to fit the dimensions of your table..
by the way i dont recommend using frames, search engines can not crawl them and some browsers do not support
if you place the iframe in a table layout you can set the dimensions for the column/row that it is placed in, then the iframe to 100% by 100% and it will stretch to fit the dimensions of your table..
by the way i dont recommend using frames, search engines can not crawl them and some browsers do not support
this is a very bad and inaccessible solution, javascript is the solution to do that...
if you place the iframe in a table layout you can set the dimensions for the column/row that it is placed in, then the iframe to 100% by 100% and it will stretch to fit the dimensions of your table..
by the way i dont recommend using frames, search engines can not crawl them and some browsers do not support
this is a very bad and inaccessible solution, javascript is the solution to do that...
maybe i just misunderstood what he was asking, this is of coursei n the javascript board .. but i thought his problem was more simple then that
Community Supporter?
What a dork
Posts: 17
114 credits Members referred : 0
« Reply #11 on: Oct 04, 2007, 06:55:42 AM »
So jscript in an iframe or frame will get the window size of its local window?
I used jscript window extents to place the mountains at the bottom of the screen here: http://slofly.com but it is not in an iframe. Sorry if that was an obvious consideration.
Anyway to get those screen extents into a number and you are free to innerhtml the whole iframe or change its attributes somehow. Please post how you will update the iframes size once you know what size to set it at.
« Last Edit: Oct 04, 2007, 06:57:21 AM by apple2 »
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4132