[Xsltforms-support] server-based select loading
Brought to you by:
alain-couthures
From: Andre C. <ac...@01...> - 2011-02-23 16:26:50
|
Hi Alain, This seems like a trivial question, but looking around, I have not found an answer yet, so I am turning to you. Along with a main model, some XSLTForms have to display a selector (e.g. xf:select1) where the options are typically provided by a server, typically on return from a previous form submission. What is the best practice for managing this? Should the options be part of the model and some script in the form loads them to the selector? can the pre-loaded selector be part of the model? is there a better way of doing this? In this case, although it seems preferable, there is no requirement for the selector to be xForm, as it could be html, other than it needs to be transmitted and received together with the (main) XSLTForms model. The number and exact nature of the selector options do vary according to context, previous selections, and submitted model content. Also there is typically more than one selector involved, along with other guizmos like checkboxes etc. Thank you. Regards, Andre |