Dynamical iframe widget??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freexav
    New Member
    • Mar 2010
    • 7
    • 4.0.0

    [CMS] Dynamical iframe widget??

    I am using a static html widget to insert an iframe as part of a layout in vbcms 4.0.3.
    However, I have hard time trying to make the iframe to resize dynamically depending on the user screen resolution.

    This is my code corresponding to my good resolution.
    HTML Code:
                <iframe src="http://synbioworld.org/formboss/output/forms/igem/igem.php" height=1704 width=1342  frameborder="0" scrolling="yes" ALLOWTRANSPARENCY="true"></iframe>
    Click image for larger version

Name:	good_reso.jpg
Views:	1
Size:	55.3 KB
ID:	3718402

    However, when i use a better resolution, i got this (the iframe does not resize automatically):
    Click image for larger version

Name:	high_reso.jpg
Views:	1
Size:	52.7 KB
ID:	3718403

    And so, with a lower resolution, the content is just split and i have to use scrollbars.

    Hence, I have changed the iframe code and exchange the px with % like following:

    HTML Code:
                <iframe  src="http://synbioworld.org/formboss/output/forms/igem/igem.php"  height=100% width=100%  frameborder="0" scrolling="yes"  ALLOWTRANSPARENCY="true"></iframe>
    but here is what I got:
    Click image for larger version

Name:	100%.jpg
Views:	1
Size:	36.3 KB
ID:	3718404

    Would you have any idea how to fix this? so that the iframe widget dynamically resize to its content and fit well into the vbulletin cms?

    Best and thank you for your help and time!

    Xavier
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...