PDA

View Full Version : Resolved Animation with JQuery Treeview script



moswell
05-12-2009, 04:17 PM
1) Script Title: jQuery treeView menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/treeview/

3) Describe problem:

I've got the menu working well for the most part, but no matter what I do I can't get the animation to work! My site (this is all development, so excuse the ugliness of the site) is http://www.moswell.people.haverford.edu/book_display_test.php. As far as I can tell I've got all the files I need, but the script description doesn't provide a lot of details. Any advice would be greatly appreciated.


<script type="text/javascript">
$(document).ready(function(){

// first example
$("#sidemenu").treeview({
animated: "slow",
collapsed: true,
unique: true,
persist: "location"
});
});
</script>

moswell
05-12-2009, 07:19 PM
:) - See, this always happens. I post the question and then keep playing around with the problem myself and end up finding the answer. I messed up because I didn't notice there was already a document.ready.function() called for the same script above. Once I added the animation bits to that script it worked just fine.