Adobe Dreamweaver Forums



Last 10 THreads :         CS4 Div Tags Help Needed (Last Post : Murray *ACE* - Replies : 6 - Views : 7 )           »          absolute images (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          So many issues with CS4 (bugs/rants) (Last Post : Murray *ACE* - Replies : 6 - Views : 7 )           »          Can I Recover my Files? (Last Post : samcec - Replies : 5 - Views : 23 )           »          Character Generator (Last Post : twistedpancreas - Replies : 0 - Views : 1 )           »          add number to global variable? (Last Post : twistedpancreas - Replies : 2 - Views : 3 )           »          Div ? (Last Post : Murray *ACE* - Replies : 5 - Views : 6 )           »          error (Last Post : Murray *ACE* - Replies : 3 - Views : 4 )           »          Help! Prob with CSS display (Last Post : Murray *ACE* - Replies : 1 - Views : 2 )           »          DW help urgently needed, lost my connection to site (Last Post : Murray *ACE* - Replies : 12 - Views : 13 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: , ,



Reply
  #1 (permalink)  
Old 09-07-2008, 10:59 PM
Darrel
 
Posts: n/a
Diggs:
Default iFrame size woes...

I rarely use iframes, but I'm using a component that requires one to render
an update panel.

When I run the site, the iframe tag is generated as such:

<iframe id="Upload_ProgressBar1" class="ProgressBar"
src="Progress.aspx?frameborder="0" scrolling="no"
name="Upload_ProgressBar1">
</iframe>

Note that there is no width/height attributes. Also note that there is no
CSS referencing the iFrame.

However, it still seems to render at a default width and height. It appears
roughly 100px tall x 400px wide.

Via javascrpt or CSS, I can make the iframe BIGGER, but I can't seem to make
it smaller than that defined size.

Is there a minimum size that an iframe has to be in browsers?

I'd try to modify the HTML itself, but, alas, the actual iFrame is rendered
from compiled server side code, so I can only access it via javascript or
CSS after the fact.

-Darrel




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-07-2008, 11:48 PM
Thierry
 
Posts: n/a
Diggs:
Default Re: iFrame size woes...

"Darrel" <notreal@nospam.com> wrote in message
news:ga1gg8$qid$1@forums.macromedia.com...
>I rarely use iframes, but I'm using a component that requires one to render
>an update panel.
>
> When I run the site, the iframe tag is generated as such:
>
> <iframe id="Upload_ProgressBar1" class="ProgressBar"
> src="Progress.aspx?frameborder="0" scrolling="no"
> name="Upload_ProgressBar1">
> </iframe>
>
> Note that there is no width/height attributes. Also note that there is no
> CSS referencing the iFrame.
>
> However, it still seems to render at a default width and height. It
> appears roughly 100px tall x 400px wide.
>
> Via javascrpt or CSS, I can make the iframe BIGGER, but I can't seem to
> make it smaller than that defined size.
>
> Is there a minimum size that an iframe has to be in browsers?
>
> I'd try to modify the HTML itself, but, alas, the actual iFrame is
> rendered from compiled server side code, so I can only access it via
> javascript or CSS after the fact.


Hi Darrel,

You should be able to resize the iframe with no problem.
There is something I notice though from the markup you posted:

<iframe id="Upload_ProgressBar1" class="ProgressBar"
src="Progress.aspx?frameborder="0" scrolling="no"
name="Upload_ProgressBar1">
</iframe>

it should be:
<iframe id="Upload_ProgressBar1" class="ProgressBar"
src="Progress.aspx" frameborder="0" scrolling="no"
name="Upload_ProgressBar1">
</iframe>

The quotes in there are wrong. Could that be the problem?


--
Thierry
Articles and Tutorials: http://www.TJKDesign.com/go/?0
--
http://developer.yahoo.com/ helps you build applications and mashups

Reply With Quote
  #3 (permalink)  
Old 09-08-2008, 03:17 AM
Darrel
 
Posts: n/a
Diggs:
Default Re: iFrame size woes...

> The quotes in there are wrong. Could that be the problem?

That must have been a cut-and-paste issue.

I'm not sure what the issue was.

I was able to over-ride whatever the issue was by just adding a CSS
declaration on the page:

iFrame {width/height}

The issue appeared to be that the iFrame wasn't getting any inline
width/height attributes so was defaulting to some specific size.

Alas, the code that creates the HTML is a compiled DLL so I couldn't easily
poke around to see what it was doing.

Oh well, the CSS works, and I can subsequently modify that via javascript,
so all's well.

-Darrel


Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:24 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk