Hello,

I have the following problem:

I'm working on a website and have to use a proxy server to get access to
the web. This proxy seems to ignore the
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">

Tags. Due to this effect the IE gets the wrong old image sizes if I
change the size of an image without changing the filename.

I tried to compensate this error with calling the updateWidth() and
updateHeight() functions. In my case only the updateHeight() Method
works. The updateWidth() function has no effect (in IE as well as in
Firefox).

I use the following javascript routine to display larger version of
pictures:
function maxImage(){

var x =0;
var y =0;
var explorerResizeX =1;
var explorerResizeY =1;
if (self.innerHeight) // all except Explorer
{
        x = self.innerWidth;
        y = self.innerHeight;
}
else if (document.documentElement &&
document.documentElement.clientHeight)
        // Explorer 6 Strict Mode
{
        x = document.documentElement.clientWidth;
        y = document.documentElement.clientHeight;
}
else if (document.body) // other Explorers
{
        x = document.body.clientWidth;
        y = document.body.clientHeight;
}
wsize = img.width;
hsize = img.height;


if(x > 0 && wsize > x){
        wsize = x-75;
        explorerResizeX = 0;
}
else{
        explorerResizeX = 1;
}
if(y > 0 && hsize > y){
        hsize = y-75;
        explorerResizeY = 0;
}
else{
        explorerResizeY = 1;
}
var win = new Window({className: "alphacube", width:wsize, height:hsize,
zIndex: 100, resizable: true, title: "Hamamatsu TIGA Center",
showEffect:Element.show, draggable:true}) 
win.getContent().innerHTML= "<div><img src="+img.src+"></img></div>"

win.showCenter();
if (explorerResizeX == 1){

 win.updateWidth();
 
}

if (explorerResizeY == 1){

win.updateHeight();
}

I would really appreciate if somebody has a solution for my problem.

Regards

Thomas

---------------------------------------------------------------------
Dipl.-Inform. Med. Thomas Suetterlin
University of Heidelberg 

Institute for Medical Biometry and Informatics 
Department of Medical Informatics
Im Neuenheimer Feld 400 
D-69120 Heidelberg, Germany                Tel. : +49 (0)6221 56-7398
http://www.klinikum.uni-heidelberg.de/mi   Fax :                -4997
[EMAIL PROTECTED]    Sekr.:               -7483
---------------------------------------------------------------------

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to