13, February 2012

Any body got solution about resizing iframe? - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Any body got solution about resizing iframe?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Any body got solution about resizing iframe?  (Read 4293 times)
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« on: Sep 17, 2006, 07: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: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #1 on: Sep 17, 2006, 07:52:38 pm »

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 Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« Reply #2 on: Sep 17, 2006, 09:08:01 pm »

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 Smiley

I don't know what AJAX is, I want to know more.
Would you give the link for me to start pls..
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #3 on: Sep 17, 2006, 09:11:58 pm »


Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« Reply #4 on: Sep 17, 2006, 09:23:24 pm »


I have been there..
Its powerfull actually, but I didn't get any idea to use it to come to the solution.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5778
46265 credits
Members referred : 3



« Reply #5 on: Sep 17, 2006, 09:29:56 pm »

It needs some work around, propably a book would also help (BTW check the forum's latest contest, we give an AJAX related book Smiley )

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« Reply #6 on: Sep 17, 2006, 09:54:01 pm »

It needs some work around, propably a book would also help (BTW check the forum's latest contest, we give an AJAX related book Smiley )

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: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #7 on: Sep 18, 2006, 06: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


Last blog : phpHaze 1.59.1 in Development
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Sep 18, 2006, 08:12:08 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

this is a very bad and inaccessible solution, javascript is the solution to do that...


Last blog : A new Wordpress theme for our blog
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 886
1148 credits
Members referred : 4



« Reply #9 on: Sep 18, 2006, 07:50:44 pm »

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 Tongue


Last blog : phpHaze 1.59.1 in Development
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Sep 18, 2006, 09:14:25 pm »


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 Tongue
simple for a javascript coder Wink


Last blog : A new Wordpress theme for our blog
Community Supporter ?
What a dork
*
Posts: 17
114 credits
Members referred : 0


« Reply #11 on: Oct 04, 2007, 05: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, 05:57:21 am by apple2 »
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4132
Tags : javascript webdigity Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Any body got solution about resizing iframe?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Feb 13, 2012, 08:29:12 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.