php - jquery tree view checkbox passing values


I'm using jeasyui plugin to achieve tree view functionality. This is the example im using Here I want to pass json values in a variable instead of json file. Because Im getting json values dynamically and having in my variable. How can I achieve this?




Lookig at the code If url is not set it returns false, so i think you need to use an url.

But as an alternative you can point the url option to the file wich generates the data.

Something like this.

<tag url="http://yourdomain/yourpath/tree_data.php">

and in the php file


echo json_encode($my_generated_data);


People are also looking for solutions to the problem: php - Why is constructor not sending array to view?


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.