I'd like to put a yui treeview inside of an add.ctp view in a cakephp application. I've got the treeview displaying fine but I'm trying to get a handle on how I can incorporate the treeview selected nodes with the post data that gets submitted by the cakephp view.
2条回答 默认 最新
- dongxuan1660 2011-01-26 19:23关注
I solved the same problem using JSON:
- Create a JavaScript function that allow encoding of the YUI's selected nodes into a JSON string
- Add the JSON string to a hidden field with the DOM properties
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报