Results 1 to 5 of 5

Thread: dynamic iframe heigth...

  1. #1
    Join Date
    Dec 2006

    dynamic iframe heigth...

    I am just trying to get it so that I can load just the "text" part of the page and not the header, top menu, side menu, or footer. The only bad thing about this is that it makes it so that there is i scrollable area inside of the "main" page, this make is more of a pain to scroll the pages to see the information. I need some way to make the iframe loaded to "show" all of the information so that it is not scrollable and does not cut off some of the information.

    This is what I am thinking... At the top of the page I have a menu that loads its links into an iframe that is under the menu. I have it set so that the iframe is set to 70% of the width of the page, is there any way that I can make it so that the height is deturmined by the amount of the content of the page that is loaded? so if there is only 50 words then the height would be small but if there was but is there was 5,000 word then it would make the iframe larger thus for making the "main" page longer.

    Anyone have any ideas about this?

  2. #2
    Join Date
    Aug 2006
    It doesn't sound like you want iframes at all. Why are you not just making a page with a header, a top menu, a side menu, your content (however big or small it is) and your footer at the bottom? It sounds like you're over-thinking this problem.


  3. #3
    Join Date
    Dec 2006
    I do not want iframes but since you can not have a source on a div element then the only thing I can do is to make it using an iframe. I work for a non-profit organization, meaning that the people that work here only know how to use MS office programs and that is all. I am going to get the website so I can train one person how to use GoLive and the very very basics of html.

    I do not want them to have access to the "core code" of the web site because they can easly "brake" it. It would be better to give the person a page that is like this....

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    		<title>Test 4</title>
                    <link rel="stylesheet" type="text/css" href="files/main.css" />
                    ONLY MAKE CHANGES HERE!!!!
    Instead of a page with over 500 lines....Plus i think that it is a bad idea to copy and paste 500 lines of text onto every single page. There is no need for that. I would say that people that do that need to go work at taco bell, what if you need to go and change one item to some other item there you go you know have to make that change to every single page on you site....

    It is like making the choice to use inline styles on every element...no thanks I like css to much.

    So I take it that what I want done can not be done? Yet another example why we need a whole need web language....Can this be done with any hack even? How about with js, dhtml, xml, ajax...anything? Point me in a direction so that I can learn I am not asking for some one to take the time to write the code for me just to get me started.

  4. #4
    Join Date
    Dec 2006
    Sorry but where is the edit button?? I see the quote and the quick reply button but not an edit button...

    Any way I thought I might have found the answer the height tag can be set to auto using CSS but that does not seem to work with the iframe... the www said that the iframe height can only be "length" or "%" nothing is said about auto though....

    Why would they make it so some elements can have an auto tag but not others...it only makes since to me to be able to set the height to auto...but that is just me...

    EDIT: found the edit button on this post...must have a time limit setup...

    SOVLED: here is the fix
    Last edited by dcanup; 05-30-2007 at 09:27 AM.

  5. #5
    Join Date
    Aug 2006
    Quote Originally Posted by dcanup
    I do not want iframes but since you can not have a source on a div element then the only thing I can do is to make it using an iframe.
    You can have a server-side include inside a div, which is awefully close to what you're looking for.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13430 seconds
  • Memory Usage 2,876KB
  • Queries Executed 13 (?)
More Information
Template Usage (34):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (5)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates