Book a Demo

Author Topic: HTML report and IE7  (Read 3195 times)

louis

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
HTML report and IE7
« on: January 23, 2007, 06:30:13 am »
When I show a linked document in IE6 it is displayed full screen. In IE7 I get a very little screen for a linked document.

louis

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: HTML report and IE7
« Reply #1 on: January 24, 2007, 03:03:30 am »
I found out that I can change the 'ToggleItem' part of the javascript in the following way:

//To solve the problem with a too small screen for linked documents in ie7 en ff.
contWHeight=0;

Here is the first part of toggleItem:




function toggleItem(item,type) {
if (tableSel!=null) {
cont.document.getElementById(tableSel+"Title").style.background="#FFFFFF";
cont.document.getElementById(tableSel+"Title").style.color="#000000";
cont.document.getElementById(tableSel+"Table").style.display="none";
}
tableSel=item;
tableSelTable = cont.document.getElementById(item+"Table");
tableSelTitle = cont.document.getElementById(item+"Title");

tableSelTitle.style.background="#DDDDDD";
tableSelTitle.style.color="#666666";
tableSelTable.style.display="block";

if (browser=="ff"||browser=="op"||browser=="ie7") {
var contWHeight = document.documentElement.clientHeight-78;
var contWWidth = cont.document.documentElement.clientWidth;
} else {
var contWHeight = document.body.clientHeight-74;
var contWWidth = document.body.clientWidth-(top.document.getElementById('resizeFrames').offsetLeft+6);
}

//To solve the problem with a too small screen for linked documents in ie7 en ff.
contWHeight=0;
 
if (cont.document.body.offsetHeight-contWHeight>0) {
if (tableSelTable.id!="LinkedDocumentTable")
tableSelTable.style.overflow="scroll";
if (browser=="ff"||browser=="op") {
tableSelTable.style.height=tableSelTable.offsetHeight-(cont.document.body.offsetHeight-cont.innerHeight)-12+"px";
} else {
tableSelTable.style.height=tableSelTable.offsetHeight-(cont.document.body.offsetHeight-contWHeight)-3+"px";
if (cont.document.body.offsetWidth>contWWidth||type==null) {