PDA

View Full Version : init Accordion Content script and others $(document).ready(function(){



christopheL
06-13-2008, 01:03 PM
1) Script Title: Accordion Content script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm

3) Describe problem: How to use ddaccordion with others scripts that use "$(document).ready(function(){" .

In my last .js I have the "ddaccordion.init({ ..." , plus some lines as :
$(document).ready(function(){
function1();
function2();
});

But it does not work, as, I suppose, there is another $(document).ready(function(){ inside the ddaccordion.js .

How to make it works ?

Thanks in advance.

Christophe

ddadmin
06-14-2008, 08:51 AM
It shouldn't matter with the latest version (v1.4), since it doesn't call jQuery.noConflict() at the beginning. What version of DD Accordion are you using?

christopheL
06-16-2008, 12:31 PM
Hello,

You were right, I was using the v1.3 script.

Now, with v1.4 it works ! Great !

Thanks very much.

Christophe