Java resize for an iframe

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Java resize for an iframe
dainbramage
CZ Newbie
dainbramage has been a member for over 20 year's 20 Year Member
usa.gif minnesota.gif
Gender: Male
Status: Offline
Joined: May 16, 2004
0.00 posts per day
Posts: 3
Points: 817
   
I've got our quake 3 server stats in an iframe on our site. There are different pages for the stats so I have to set the iframe height to the largest page, which doesn't look very good on the smaller ones. I've been trying to locate more info about using java to resize the window to fit the contents, and I'm wondering if anyone here has successfully done so and would be willing to share the code.



Back to top Reply with quote
#2   re: Java resize for an iframe
Kelly_Hero
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
usa.gif southcarolina.gif
Occupation: Web Developer
Age: 59
Gender: Female
Website:
Status: Offline
Joined: Aug 20, 2003
0.49 posts per day
Posts: 3765
Points: 351,412
   
Try this:

[ Register or login to view links on this board.]

Kelly



Back to top Reply with quote
#3   re: Java resize for an iframe
dainbramage
CZ Newbie
dainbramage has been a member for over 20 year's 20 Year Member
usa.gif minnesota.gif
Gender: Male
Status: Offline
Joined: May 16, 2004
0.00 posts per day
Posts: 3
Points: 817
   
Nice link, thanks. icon_smile.gif

I'm using the CZIframe module, so I replaced the iframe code in there with the code from step 2 of that link, and I added the code from step 1 to the header.html for my theme. It starts to work, and resizes around the first part of the content site.

Here's the results: [ Register or login to view links on this board. ]

Here's the target page for the Iframe: [ Register or login to view links on this board. ]

Not sure why, but it's wrapping around the header portion of the target. Any more input is much appreciated.



Back to top Reply with quote
#4   re: Java resize for an iframe
dainbramage
CZ Newbie
dainbramage has been a member for over 20 year's 20 Year Member
usa.gif minnesota.gif
Gender: Male
Status: Offline
Joined: May 16, 2004
0.00 posts per day
Posts: 3
Points: 817
   
Just thought I'd bump this once since it's close to working, but I'm stuck on something.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum