2016-10-13 5 views
0

サイトでddaccordionを設定しましたが、なんらかの理由で動作していません。それは常に開いたままです。 正しいライブラリが呼び出されていることを確認しましたが、コンソールにエラーが記録されていません。ddアコーディオンは作動しません。コンソールにエラーが表示されない

Iveは、サイトで使用されているような厳密なHTML、CSS、スクリプトを使用してフィディルドを設定します。これは、他のjavascriptまたはjqueryとの競合を排除します。 フィドルがここhttps://jsfiddle.net/b1ao7g05/2/

を見つけることができます使用するスクリプトは、ddaccordionのウェブサイト上でデモから取られているとアコーディオンの失敗の原因となっているものを

ddaccordion.init({ 
headerclass: "submenuheader", //Shared CSS class name of headers group 
contentclass: "submenu", //Shared CSS class name of contents group 
revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover" 
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover 
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content 
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed) 
animatedefault: false, //Should contents open by default be animated into view? 
persiststate: true, //persist state of opened contents within browser session? 
toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"] 
togglehtml: ["suffix", "<img src='plus.gif' class='statusicon' />", "<img src='minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs) 
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow" 
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized 
    //do nothing 
}, 
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed 
    //do nothing 
} 
}) 

任意のアイデアですか?

答えて

-1

にReferenceError:ddaccordionが定義されていない

  1. ZenCartには、HTTPSをサポートしていません。リンクがhttpsに変更されても、動作しません。
  2. スクリプトはdocument.writeを使用しています(これは、ddaccordianscriptをフィドルJSエリアにコピーしたときに明らかになりました)
  3. 「インフラストラクチャ」が問題はjsfiddleの問題ではなく、コードの間違いを見つけるのに役立つように、それを送信する前に動作します。
+0

それはhttpではなくhttpsの https://jsfiddle.net/b1ao7g05/3/ –

+0

私ははっきりとあなたが禅カートについて知っている知っているが、いないいない基本的な事実上のファイルを探していたとしてだけで更新フィドルそれはhttpsをサポートしています。それはconfigure.phpファイルで定義されているものです! この問題に関しては、実際には、jsfiddleがファイルがhttpsではなくhttp経由で提供されていると訴えているという事実を指していました。外側のファイルにhttp urlを追加すると、生成されるエラーメッセージが表示されます。 –

+0

[] https://zencart.hosting/admintabs/ddaccordion.jsで証明書エラーが生成されていないことを確認しました。 – campino2k

関連する問題