Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Will on Mar 13, 2009 19:12
open dhtmlx forum
dhtmlxAccordion IE Crash

OK.... Totally confused here.

After trying just about everything to get the dhtmlxAccordion work work in IE (kept crashing the page) I kept removing code until I narrowed down what the issue(s) were that were causing the IE issues, and came up with the following:

(note that FireFox is completely fine)

This works fine in IE:
http://www.goodwillgamers.com/test.php

This crashes the page and aborts in IE:
http://www.goodwillgamers.com/test2.php

Note that the ONLY difference is in test2.php is that the dhtmlxAccordion is within a DIV container.
What am I missing???
Answer posted by Alex (support) on Mar 16, 2009 04:10

Please, try to place accordion initialization script after the parent div element:

<div>
<div id="accordObj" style="position:relative;width:320px;height:400px;"></div>
</div>
<script>
  var dhxAccord=new dhtmlXAccordion("accordObj", "dhx_black");
  dhxAccord.addItem("7", "Should See Me First");
  dhxAccord.cells("7").attachURL("/data_provider/forum_post_body.php?pid=7");
  dhxAccord.addItem("6", "Test Post #6 (nEWEST) (Changed)");
  dhxAccord.cells("6").attachURL("/data_provider/forum_post_body.php?pid=6");
  dhxAccord.addItem("3", "Test Post #3");
  dhxAccord.cells("3").attachURL("/data_provider/forum_post_body.php?pid=3");
  dhxAccord.setSizes();
</script>