Problems to load content from html file into div

Problems to load content from html file into div

Hi there,

i use dynatree as a plugin and i want to load the content dynamicly given link url into a div on the page.
The link works and the event is alos fired ... but the code just loads the url but not into the div ... what am i doing wrong ?

so i added that script to my page:

<script type="text/javascript">
      $('#main_menu#).dynatree({
            clickFolderMode: 1,
            selectMode: 1,
            onActivate: function(node) {
                  document.getElementById('main_content').src = url;
            )
      });
</script>

div ifs declared as follows:

<div id="main-content">