私は最近、あらゆる種類の失敗したサイトを継承しました。私はどちらかというと php 派で、最初は js は問題なく動作していました。javascript やインクルード ファイルには何も変更を加えていませんが、コンテンツをいくつか編集した後、firebug からエラーが発生しています。
a.dispatchEvent is not a function
emptyFunction()protot...ects.js (line 2)
emptyFunction()protot...ects.js (line 2)
fireContentLoadedEvent()protot...ects.js (line 2)
[Break on this error] var Prototype={Version:'1.6.0.2',Brows...pe,Enumerable);Element.addMethods();
protot...ects.js (line 2)
this.m_eTarget.setStyle is not a function
[Break on this error] this.m_eTarget.setStyle( { position: 'relative', overflow:'hidden'} );
protot...ects.js (line 43)
uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE)" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: js/prototype_effects.js :: anonymous :: line 2" data: no]
グーグルで検索すると、jquery+prototype がうまく動作しないことがあり、スクリプトを再配置することでこの問題を解決できるといういくつかの投稿が見つかりましたが、これらのセクションに触れていないため、どこからデバッグを開始する必要があるのかさえわかりません。以前の開発者は、プロトタイプをロードする head.inc ファイルを組み込み、scriptaculous を作成し、多くのページをライトボックスなどの関数の jquery をロードするサブテンプレートに配置しました。
このサイトは、http: //dawn.mikeyhill.com にある一時的なものです。
どんな助けでも大歓迎です。