javascript object refresh April 21, 2020, 09:43:29 PM I have a hierarchical tree generated with javascrip. It takes data from a .js file. When the data is changed in that file, the tree view is not refreshed in the page.Executing the html demo file out of the phprad project, the refresh is immediately. Is there a setting in phprad? Quote Selected
Re: javascript object refresh Reply #1 – April 22, 2020, 06:14:13 PM @ccortes I don't understand your question properly, can you make it a bit clearer? Quote Selected
Re: javascript object refresh Reply #2 – April 22, 2020, 07:05:54 PM tree.js build the tree; tree_items.js has the data to build the tree (the nodes). When the data changes in tree_items.js, the tree view is not refreshed. It is necesary to clear files and images stored in the browser's cache in order to refresh the tree view . This is the code:<script language="JavaScript" src="http://localhost/test-tree/assets/js/tree.js"></script><script language="JavaScript" src="http://localhost/test-tree/assets/js/tree_items.js"></script><script language="JavaScript" src="http://localhost/test-tree/assets/js/tree_tpl.js"></script><table cellpadding="5" cellspacing="0" cellpadding="10" border="0" width="100%"><tr> <td> <script language="JavaScript"> <!--// new tree (TREE_ITEMS, TREE_TPL); //--> </script> </td> </tr> Quote Selected
Re: javascript object refresh Reply #3 – April 23, 2020, 02:25:10 PM @ccortes please send me your TeamViewer id and password. Quote Selected
Re: javascript object refresh Reply #4 – April 27, 2020, 04:11:15 PM I have found a solution. Thanks!! Quote Selected