reload Fencytree from iframe #1134
-
@martin, first of all, fantastic work. I use your FT to structure a process DB witht many tables and in tree structure it makes a lot more sence:) I'm not a jquery or js expert therefore I strugle with a maby simple issue. I have a classic navigation screen - tree left, right data presentation erea (for new/up/del). work pretty well. Fore some reason I need to run the presentation erea in an iframe (don't ask way) . Therefore it looks like the trees (I have 3 in an tab structure on right side outside iframe) can not be reloaded by jquery from iframe when new / updatetd / deleted events happen and refesh of trees (ajax load, no lazy) is nessesary. I note that when parent window and Ifram have same origin, with "parent.document" jquerry can access outside elements from iframe like: $("#element", parent.dokument).html("abc"); I try to adapt for FC like: var tr1 = $.ui.fancytree.getTree("#tree1", parent.document); but no succes. Any Idear? Many Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Maybe this helps: |
Beta Was this translation helpful? Give feedback.
Maybe this helps:
https://wwwendt.de/tech/fancytree/demo/#sample-iframe.html
The iframe also contains a button that controls the outside tree