Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 13, 2007 14:45
open dhtmlx forum
I need to display complex data like in your example.  once the user selects the items needed i need ...

I need to display complex data like in your example.  once the user selects the items needed i need to collect what is selected. 

I've added a form and submit button put nothing posts to my action page.

I can i do that?
Answer posted on Feb 13, 2007 14:47

The tree hasn't native support for FORM submit, so you need to add some code manually.

For example:

<script>
            my_tree= new...

            ... //tree init

function collectData(){
            var a=document.forms["a_form"];
            a.a_selected.value=my_tree.getSelectedItemId();
            a.a_checked.value=my_tree.getAllChecked();
}
</script>

<form onsubmit="collectData(); return true;" name="a_form">
            <input type="hidden" name="a_selected">
            <input type="hidden" name="a_checked">
            <input type="submit">

</form>

Answer posted by radyno (Support) on Dec 09, 2014 04:58

Not much can be said in addition to the reply above, but you also can check data grid controls and ajax calendar php and find out what we have probably missed in our explanation.