Search code examples
dynatree

Is an iframe the best way to use the dynatree when retrieving results?


I have a two column css layout. Left container holds the dynatree. It's pulling from a local json file. The right side will be the content, populated by clicking on a node on the dynatree.

What I saw on the dynatree examples was the usage of an iframe with urls in the tree.

Is using the iframe the "best" way to do things? Is this the only way to populate the content?

I'm probably being silly, but iFrames don't usually seem like a good way to go on things. Is there a better way? Should I be using ajax (can I?)?

http://wwwendt.de/tech/dynatree/doc/samples.html

"Example: URL navigation and iframes"

Thanks.


Solution

  • I was able to get this to work by placing my ajax in the onactivate event of dynatree:

    $("#response").load("myname.php?name=Johnny&dummy=" + new Date().getTime()); 
    

    the date gettime was to defeat the ie caching problem.