[Xsltforms-support] using treeview after response from service
Brought to you by:
alain-couthures
From: Steiner, D. J. (LNG-DAY) <Dav...@el...> - 2011-07-29 16:33:50
|
Hi, I'm trying to incorporate the jquery treeview into my xsltforms page. I have a service that will return the html structure that's required to make treeview work - I know this because I can take the data that comes out of the service and put it in the body of an HTML document and it works fine. I'm assuming that this has something to do with the fact that my script in my xsltform only has: $(document).ready(function(){ $("#theList").treeview(); }); So it seems that I need invoke the treeview function after xsltforms has finished calling the service and xf:output has "rendered" the results from the service. If I cut and paste the results from the service into a model instance in the xsltform, the functionality of the treeview seems to work, but the styling isn't quite right. So, I am assuming that this is because the "ready(function)" in the script has worked for the most part, though it appears that the xsltforms styling has overshadowed the treeview styling. Is there a way to get the treeview styling and functionality in the xf:output of the xsltform? Sorry if this is obvious, but I'm not much of an html/javascript/css coder... Thanks, David |