ASTreeView: Resolve confliction with jQuery

By | October 12, 2009

Thanks xiaot for reporting this issue that if jQuery is included in page, it conflicts with the ASTreeView.

To resolve this issue, we can use the noconflict method of the jQuery:

 <script src="jquery-1.3.2.js"></script>
 <script type="text/javascript">
     var J = jQuery.noConflict();
 </script>

Now $("#foo") will be J("#foo") and it will not conflict with the ASTreeView.

I’ll update the ASTreeView internal methods, make it not conflict with jQuery in the next version.

updated

The new version (1.1.1) does not conflict with jQuery any more, please update if you’re using jQuery in your project.

Download: http://www.astreeview.com/astreeviewdemo/Download.aspx