Salesforceを使用しており、onfocus = "js_fn1(this、'param1' ..)などを使用する必要があります。
特有の要件として、匿名関数をパラメーターとして、onfocusでバインドしている関数に渡そうとしています。生成されたHTMLは次のとおりです。
<input onfocus="self=this;new AutoComplete('thePage:j_id3:thePageBlockId:j_id45:j_id46:pName','thePage:j_id3:thePageBlockId:j_id45:j_id46:primaryNameSuggestWrap', searchNamesfn, function(){fireAddressSearch(self, 'thePage:j_id3:thePageBlockId:j_id45:j_id46:address', 'thePage:j_id3:thePageBlockId:j_id45:j_id46:addressSuggestWrap', searchAddressesfn, selectAddressesfn);});return false;" onkeypress="return noenter(event)" id="thePage:j_id3:thePageBlockId:j_id45:j_id46:pName" type="text" name="thePage:j_id3:thePageBlockId:j_id45:j_id46:pName" value="" class="cField" />
これはChrome10とFirefox3.6でうまく機能します。しかし、それは失敗したようです、あなたはそれを推測しました、IE8。私はこれについていくつかの話をしましたが、他に何も結論付けることができませんでした-IEは邪魔なjsのanon関数をサポートしていませんか?IE8は言った
Message: Not implemented
Line: 219
Char: 1
Code: 0
219行目に入力フィールドがあります誰かがこれを修正する方法を教えてもらえますか?