私のクライアントは IE9 でのみ Web サイトに問題があります (ページは Firefox と Chrome で正常に動作します):
Web サイトには、ポップアップ ウィンドウにアップロード フォームがあります。処理後、ポップアップ ウィンドウが閉じられ、アップロードされたファイル (画像) がメイン (上部、「父」) ページに表示されます。
ポップアップのコードは次のとおりです。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>..:: Upload Img ::..</title>
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
function fcnReload() {
top.showFotos('127d4efeef19abfcbc411507bd9d5de6', '_cookie.jpg|_f0.jpg');
}
</script>
</head>
<body onunload="fcnReload();">
<h3>Image uploaded - OK</h3>
Close the window<br /><br />
</body>
</html>
何らかの理由で、アップロードされた画像が IE9 で表示されず、エラーが発生します:
SCRIPT438: オブジェクトはプロパティまたはメソッド 'showFotos' 1.html、9 行目の文字 6 をサポートしていません。
親ウィンドウを更新する際に何らかの IE の問題が発生している可能性があります: link1、link2
関数 showFotos コード:
function showFotos(session, names) {
var arrNames = names.split('|');
strNames = '';
for (var i=0; i<mdl_fotos; i++) {
if ((i==0) && (sel_mod==11)) {
document.getElementById('Preview-Color').src = '/uploads/'+session+arrNames[i+1];
document.getElementById('Preview-Color').style.width = '444px';
document.getElementById('Preview-Color').style.height = '350px';
strNames += ','+arrNames[i+1].replace('_','');
} else {
document.getElementById('ExtImg'+(i+1)).src = '/uploads/'+session+arrNames[i+1];
strNames += ','+arrNames[i+1].replace('_','');
}
}
if (arrNames[0] != '')
document.getElementById('Preview-Cookie').src = '/uploads/'+session+arrNames[0];
strSession = session;
strNames = arrNames[0].replace('_','')+strNames;
}