SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2002
    0 Post(s)
    0 Thread(s)

    Iframe width not renderning in IE

    I hope I can explain this mess properly...

    I inherited a frame layout site that is dynamically loading JSP pages into the frames. I want to take a horizontal navigation (simply HTML) and place it on top of the frame content already there. The best way I came up with to do this is to use the HTML page containing the horizontal nav stuff and throw the frameset I was given into an iFrame. It works pretty well but I am having trouble controlling it.

    The main problem is that even though I've set the width to 100% everywhere, in IE it stops at about width 75%. In Mozilla, the width is fine. Basically, I want the width showing up in Mozilla to show up in IE.

    Maybe looking at the code will make it clearer. So index.html contains the horizontal banner and links. Within this code is the call to the iframe.html, which in turn calls the fileframeset.jsp, which in turn will call the rest of the content.

    Thanks in advance for the help. I would be eternally grateful for any advice.



    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Home</title>

    <script language="JavaScript" type="text/javascript" src="icb.do_files/core30.js"></script><script language="JavaScript" type="text/javascript" src="icb.do_files/utils.js"></script><script language="JavaScript" type="text/javascript" src="icb.do_files/calendar.js"></script><script language="JavaScript" type="text/javascript" src="icb.do_files/calendar-setup.js"></script><script language="JavaScript" type="text/javascript" src="icb.do_files/calendar-en.js"></script><link rel="stylesheet" href="icb.do_files/fancyblue.css"><link rel="stylesheet" href="icb.do_files/isites-screen.css" type="text/css" media="screen"><script src="icb.do_files/isites-scripts27.js" type="text/javascript"></script>
    <link rel="stylesheet" href="icb.do_files/screen.css" type="text/css" media="screen">
    <script type="text/javascript" src="icb.do_files/pdmenu.js"></script>
    <script type="text/javascript">
    function go2(selection) {
    window.location.href = selection.options[selection.selectedIndex].value;
    <style type="text/css">
    border: 0px;


    <div id="banner">

    <div id="siteTitle">
    <a href="">Title</a>
    <img src="mygif.gif" alt="mygif" />
    <a href="">NewPage</a>

    <div class="wrapend"></div>


    <!-- BEGIN nav level one -->
    <div id="nav1">
    <p class="hide">Navigation/p>
    <li class="current"><a href="link1.html">Link1</a></li>
    <li><a href="link2.html">Link2</a></li>
    <!-- END nav level one -->

    <iframe src="iframe.html" width="100%" height="100%" scrolling="no" frameborder="0" border="0" name="iframe1"></iframe>


    <!-- Copyright (c) , Inc. 1999-2001. All Rights Reserved. -->
    <!-- $Header: /usr/cvs/wfs50/webapps/webui/index.html,v 43.0 2004/09/01 19:12:27 estlawre Exp $ -->
    <HTML lang="en">
    <META HTTP-EQUIV="Refresh" CONTENT="1; URL=webui">


    <!-- Copyright (c) , Inc. 2000-2001. All Rights Reserved. -->
    <!-- $Header: /usr/cvs/wfs50/webapps/webui/filesframeset.jsp,v 43.7 2005/11/29 17:27:16 mkern Exp $ -->
    <%@ page info="Files frame set" %>
    <%@ page session="false" isThreadSafe="true" errorPage="error.jsp" %>
    <%@ page import="java.util.Locale,
    com.x.common.api.ClassVersionCache" %>
    <%! private static final String RCSVersion = ClassVersionCache.addClass("$Header: /usr/cvs/wfs50/webapps/webui/filesframeset.jsp,v 43.7 2005/11/29 17:27:16 mkern Exp $"); %>

    <% response.setContentType("text/html; charset=UTF-8");
    String p_leftTarget = (String) request.getAttribute("leftTarget");
    String p_rightTarget = (String) request.getAttribute("rightTarget");
    MessageBundle p_msgBun = (MessageBundle) request.getAttribute("messageBundle");
    if(p_msgBun == null) throw new Exception("Invalid message bundle passed");


    <HTML lang="<%=((Locale)request.getLocale()).getLanguage()%>">
    <TITLE><%= p_msgBun.getString("X_WFS")%></TITLE>
    <link rel="shortcut icon" href='<%= request.getAttribute("outPrefix") %>/static/images/xicon.ico' type="image/x-icon">
    <script language="javascript">

    function onloadFunction () {"<%= WebuiUtil.X_FRAME_SET%>";


    <FRAMESET onLoad="javascriptnloadFunction()" alt='<%= p_msgBun.getString("FRAMESET_EXPLANATION_TEXT")%>' rows="100%" cols="20%,*" frameborder="1">
    <FRAME name="<%= WebuiUtil.X_LEFT_FRAME%>" title="<%=WebuiUtil.X_LEFT_FRAME%>" src="<%=p_leftTarget%>" marginheight=0 marginwidth=0 scrolling=yes frameborder=1 alt="<%=WebuiUtil.X_LEFT_FRAME%>">
    <FRAME name="<%= WebuiUtil.X_RIGHT_FRAME%>" title="<%=WebuiUtil.X_RIGHT_FRAME%>" src="<%=p_rightTarget%>" marginheight=0 marginwidth=0 scrolling=yes frameborder=1 alt="<%=WebuiUtil.X_RIGHT_FRAME%>">


  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Aurora, Illinois
    0 Post(s)
    0 Thread(s)
    Can you please repost that as HTML output instead of a combination of HTML and JSP code?

  3. #3
    Non-Member QiSoftware's Avatar
    Join Date
    Oct 2004
    0 Post(s)
    0 Thread(s)
    Looks like your [frame size] specifications are being overriden by the jsp calls to internal utilities. Does anything happen in IE when you vary the size specifications of the frame in index.html?



Posting Permissions

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