Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Quique on Apr 02, 2009 03:08
open dhtmlx forum
How can I get the “id” attribute for method “setXMLAutoLoading”???

I´m using setXMLAutoLoading (“…/viewFase.do&method=init?id=”+id) --> Java Struts;

I use Javascript but I don´t know How can I get “id” parameter…. Can I help me?

Thank you so much.
Answer posted by Support on Apr 02, 2009 04:02
You can use 
      tree.setXMLAutoLoading("…/viewFase.do&method=init");
component will automatically add "&id=some" during dynamical request processing. 

If you want to have more wide control over url building, you can use 


tree.setXMLAutoLoadingBehaviour("function");
tree.setXMLAutoLoading(function(id){
       tree.loadXML("…/viewFase.do&method=init?id="+id);
});