CEEBOXを使用してポップアップウィンドウにYouTubeビデオを表示しているASP.NetMVCサイトがあります。
ビデオウィンドウがポップアップすると、IE9で次の例外が発生します。
行:1エラー:プロパティ'SetReturnValue'の値を取得できません:オブジェクトがnullまたは未定義です
デバッガーを使用しようとすると、次のようなセクションで例外が発生していることがわかります{Formatting is mine}:
try {
document.getElementById("")
.SetReturnValue(__flash__toXML(document.location.href.toString()));
}
catch (e) {
document.getElementById("").SetReturnValue("<undefined/>");
}
ポップアップをトリガーするアンカーのマークアップは次のとおりです。
<a class="thickbox" rel="width:640 height:385"
href="http://www.youtube.com/watch?v=xxxxxxxxx" >
<span style="background-color: White; position: relative; outline-style: none; ">
<span class="cliplarge" >
<img src="http://zzz.zzz.com/xxxx.jpg"
style="height: 275px; width: 418px; margin-bottom: 0px; margin-top: -35px; "
alt="Test" title="" />
</span>
<div style="z-index:40;position:relative;height:100px;width:100px;top:-140px;left:140px;">
<img src="<%: Url.Content("~/Content/VideoPlay.png") %>" />
</div>
</span>
</a>