Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rustamjon Mukhammadaliyev on Feb 08, 2009 21:51
open dhtmlx forum
Dataprocessor

Hi there,

Is there possibility to get additional data except tid and sid?

Thanks in advance!
Answer posted by dhxSupport on Feb 09, 2009 06:37

Yes you can send any data except "tid" and "sid". Responce from the server should has format:

<data>
  <action type="some" sid="some" tid="some" customData="data" />
</data>

Answer posted by Rustamjon Mukhammadaliyev on Feb 09, 2009 09:44
How can access my custom variables?
Answer posted by Support on Feb 10, 2009 08:38
You need to define you custom event handler function, it will receive an XML tag as parameter

dp.defineAction("some",function(tag){ //some == ction@type
    alert(tag.getAttribute("customData"));
});
Answer posted by Rustamjon on Feb 10, 2009 09:08
 Thank you for help