vgonzalez
11-05-2003, 11:17 PM
Hello,
I have a javascript popup window that works great in IE, (thanks to some help from 'adios') but it doesn't work in Mozilla. To clarify, in mozilla the pop up and text show up fine, but the image is not displayed.
What I am doing wrong?
Thanks!
~Vicky
The function showDiskToRemove() is called from another javascript.
var HTML, picwin = null;
var picURL = '/Overland/Images/disk';
function showDiskToRemove( diskToRemove )
{
var picImage = picURL + diskToRemove + ".gif" ;
if (picwin && ! picwin.closed)
{
picwin.close();
}
HTML = '';
HTML += '<html><head><title>Remove Proper Disk<';
HTML += '/title><';
HTML += '/head><body align=center TEXT="#440D51" BGCOLOR="#EEEDCB" >';
HTML += '<br><p align=center><img src="' + picImage + '">';
HTML += '<br><font color="#440D51" face="century gothic, century schoolbook, arial">';
HTML += '<br>Please Remove the disk indicated in the picture above.<br><br>';
HTML += '<strong>Removing any other disk could result in data loss!<';
HTML += '/strong><br><';
HTML += '/p><';
HTML += '/font><p align=center><form style="margin:12px auto;">';
HTML += ' <input type="button" class="OverlandButton" value="OK" onclick="self.close()"><';
HTML += '/form><br><';
HTML += '/p><br><';
HTML += '/body><';
HTML += '/html>';
picwin = open('javascript:opener.HTML', 'picwin', 'left=160,top=160,width=450,height=275,status=0');
if (picwin && ! picwin.closed)
{
picwin.focus();
}
return false;
}
I have a javascript popup window that works great in IE, (thanks to some help from 'adios') but it doesn't work in Mozilla. To clarify, in mozilla the pop up and text show up fine, but the image is not displayed.
What I am doing wrong?
Thanks!
~Vicky
The function showDiskToRemove() is called from another javascript.
var HTML, picwin = null;
var picURL = '/Overland/Images/disk';
function showDiskToRemove( diskToRemove )
{
var picImage = picURL + diskToRemove + ".gif" ;
if (picwin && ! picwin.closed)
{
picwin.close();
}
HTML = '';
HTML += '<html><head><title>Remove Proper Disk<';
HTML += '/title><';
HTML += '/head><body align=center TEXT="#440D51" BGCOLOR="#EEEDCB" >';
HTML += '<br><p align=center><img src="' + picImage + '">';
HTML += '<br><font color="#440D51" face="century gothic, century schoolbook, arial">';
HTML += '<br>Please Remove the disk indicated in the picture above.<br><br>';
HTML += '<strong>Removing any other disk could result in data loss!<';
HTML += '/strong><br><';
HTML += '/p><';
HTML += '/font><p align=center><form style="margin:12px auto;">';
HTML += ' <input type="button" class="OverlandButton" value="OK" onclick="self.close()"><';
HTML += '/form><br><';
HTML += '/p><br><';
HTML += '/body><';
HTML += '/html>';
picwin = open('javascript:opener.HTML', 'picwin', 'left=160,top=160,width=450,height=275,status=0');
if (picwin && ! picwin.closed)
{
picwin.focus();
}
return false;
}