Sublime directory Surf the web anonymous Pagerank Monitor


Any body got solution about resizing iframe?

montyauto
Sun 17 September 2006, 07:50 pm GMT +0200
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.

Nikolas
Sun 17 September 2006, 07:52 pm GMT +0200
I don't know what exactly you want to do, but I think if you use AJAX you can overcome this.

BTW welcome to webdigity monty :)

montyauto
Sun 17 September 2006, 09:08 pm GMT +0200
I don't know what exactly you want to do, but I think if you use AJAX you can overcome this.

BTW welcome to webdigity monty :)

I don't know what AJAX is, I want to know more.
Would you give the link for me to start pls..

Nikolas
Sun 17 September 2006, 09:11 pm GMT +0200
Hope that helps :

http://www.w3schools.com/ajax/default.asp

montyauto
Sun 17 September 2006, 09:23 pm GMT +0200

I have been there..
Its powerfull actually, but I didn't get any idea to use it to come to the solution.

Nikolas
Sun 17 September 2006, 09:29 pm GMT +0200
It needs some work around, propably a book would also help (BTW check the forum's latest contest, we give an AJAX related book :) )

montyauto
Sun 17 September 2006, 09:54 pm GMT +0200
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..

Meth0d
Mon 18 September 2006, 06:30 am GMT +0200
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

olaf
Mon 18 September 2006, 08:12 am GMT +0200
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...

Meth0d
Mon 18 September 2006, 07:50 pm GMT +0200
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 :P

olaf
Mon 18 September 2006, 09:14 pm GMT +0200

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 :P
simple for a javascript coder ;)

apple2
Thu 4 October 2007, 05:55 am GMT +0200
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.


Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional