25, July 2008

Any body got solution about resizing iframe? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

Author Topic: Any body got solution about resizing iframe?  (Read 1811 times)
My name is Bong, James Bong
*
Gender: Male
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: Male
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.

BTW welcome to webdigity monty Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« Reply #2 on: Sep 17, 2006, 10: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: 7975
40807 credits
Members referred : 3



« Reply #3 on: Sep 17, 2006, 10:11:58 PM »


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« Reply #4 on: Sep 17, 2006, 10: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: 7975
40807 credits
Members referred : 3



« Reply #5 on: Sep 17, 2006, 10: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 Visit through proxy

Last blog : MIA - Where Nick and Tim
My name is Bong, James Bong
*
Gender: Male
Posts: 10
76 credits
Members referred : 0



« Reply #6 on: Sep 17, 2006, 10: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: 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

Visit through proxy Visit through proxy Visit through proxy

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


It's time to use PHP5!


« Reply #8 on: Sep 18, 2006, 09: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 : 4th of July Lottery from TemplateMonster.com
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



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

Visit through proxy Visit through proxy Visit through proxy

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


It's time to use PHP5!


« Reply #10 on: Sep 18, 2006, 10: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 : 4th of July Lottery from TemplateMonster.com
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 Visit through proxy
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
Tags : javascript webdigity Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Jul 25, 2008, 12:21:20 AM





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!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.711
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Asimina

40 Guests, 2 Users online :

12 users online today:



Readers

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