You could point to a main() function in your js which looks at the said parameter, and calls the appropriate function. You'd have to ensure, of course, that you don't allow anyone to put in any malicious code.
Don On Fri, 11 Mar 2005 21:27:40 +0100, Timo -Blazko- Boewing <[EMAIL PROTECTED]> wrote: > Hello List, > > I plan to use Struts Flow plugin in order to realise a wizard for a > survey tool. However, the survey tool can handle different survey > definitions (depending on an URL parameter) at once. Thus, using a > simple flow control file (the server side JavaScript) is not that ideal, > because the wizard flow mat be very different per survey. > > In the struts config, there is a hard wired survey parameter pointing to > the JavaScript, so there is no way of dynamically forking to different > scripts depending on a user's session parameter that tells what survey > he/she is participating. > So, is there a good way of forking elsewhere? E.g. making the JS that is > referenced by the Struts config a forker? > > The Struts cfg should not change over the time, so to add several plugin > definitions per survey is not goog, the only customising part should be > to add JavaScripts. > > Thank you for any hints! > > Greetings, > > Timo > > -- > greetings, | /"\ > | \ / ASCII-Ribbon-Campaign > Timo | X Against HTML Mail > | / \ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]