jsTree cómo cambiar la URL de ajax y recargar datos
$('#jstree_demo_div2').jstree({
'core': {
'data': {
"url": "tree.ashx?id=" + _id,
"dataType": "json" // needed only if you do not supply JSON headers
}
},
"checkbox": {
'visible': true,
'keep_selected_style': false,
},
"plugins": ["wholerow", "checkbox"]
});
Necesito cambiar la url (o la variable_id
cambiará) y luego actualizará los datos. Pero parece haber un problema de caché.
Supervisé la solicitud HTTP, el parámetro de solicitud_id
No ha cambiado.
He intentado
'core': {
'data': {
"url": "tree.ashx?id=" + _id,
"cache":false, //←←←←
"dataType": "json" // needed only if you do not supply JSON headers
}
},
Y no funcionó.
Por cierto, mi versión jsTree.js es 3.0.8.