IE8で開発され、テストされたJQueryを使用したソリューションで作業しています。JQueryとIE8、互換モード、IE7エミュレーション
[ツール]> [互換表示設定]の下にある[すべてのウェブサイトを互換表示で表示]しているユーザーがいます。そして、JQueryの一部が失敗しました。私はIE8にそれを強制しようとしているを見て、metaタグを経由して互換モードをオフにしてきた
...
$(document).ready(function() {
// creating named variables to represent the throbber objects to make life easier later.
var moSearchThrobber = $("#imgSearchThrobber");
var moFilterThrobber = $("#imgFilterThrobber");
//lets hide the search and filter dialogs.
$("div[id*=pnlSearch_Dialog]").hide();
$("div[id*=pnlFilter_Dialog]").hide();
// when I change the value of my drop downs in search and in filter, set the hidden field value.
$("select[name=ddlValue]").change(function() {
$(this).siblings("input:hidden").val($(this).val());
});
// If the user clicks on the Search link button.
$("a[id*=lnkSearch").click(function() {
// while we are at it turn on the search throbber
moSearchThrobber.css('visibility', 'visible');
// find the search grid and get/each through all the rows.
$("table[id*=grdSearch]").find("tr").each(function() {
非表示機能が動作し...しかし、クリックの方法は、発射に失敗しました。 ..しかし、それは私には汚いと感じます。この時点でIE8の3つの「バージョン」すべてでjqueryを同じにするオプションはありますか?
エラーが表示されますか?それが「失敗した」と言ったらどういう意味ですか? – gilly3
エラーはありません...それは火災を起こしませんでした – Patrick
コード内の空白を埋めて、これはIE9の互換性ビューで動作します:http://jsfiddle.net/WyyUe/。あなたの 'lnkSearch'セレクタには終わり括弧(') 'がありませんが、それは互換性のあるビューであろうとなかろうと、それを壊すことになるので、それは単にタイプミスです。あなたのバグが見える場所にjsfiddleを投稿できますか? – gilly3