On Thu, 03 Mar 2005 22:41:50 +0000, Upayavira <[EMAIL PROTECTED]> wrote:
> > Now, I expect that the answer will be that I should use variables
> > within flowscript. I've seen that the flow tutorial and examples do
> > things this way.
> 
> It is up to you. However, I think you'll find the flow route easier.
> Really it is a matter of personal programming choice.
> 
> > The only thing I don't like about using flow variables, is that I have
> > to pass them all through when I call a sendPage or sendPageAndWait.
> 
> No you don't. You only need to pass them if you want to display them in
> your page.

True. :) In addition, I suppose I could do some 'magic' to build an
array, and just pass that, instead of naming each one within the curly
braces.


> > In
> > this example, I only had one original parameter, but suppose I had 50?
> > Even worse, suppose that I don't know the names of each parameter, or
> > that the potential set of provided parameters is highly volitile.
> >
> > The advantage to using hidden form fields, is that I can handle any
> > number of original parameters, and don't have to worry about what
> > they're named. The request generator gives me all that information for
> > free, and my stylesheet can transform them easily. The downsides of
> > this method is that all that data goes back and forth between client
> > and server, not to mention that it's cheesy and old-school.
> 
> Just saying:
> var a = "foo";
> cocoon.sendPageAndWait("my-second-url");
> var b = a + "bar";
> 
> Surely that is pretty easy?

Of course. :)


> Certainly easier than having to construct a form to pass it back and
> forwards.

Ah, but in my case I need the forms to gather user input anyhow. Time
contraints dictate that I wait to move everything to CForms.


> > What do you guys think?  ( Let me know if anything is not clear. )
> 
> Well, there's my thoughts.

Thanks, Upayavira!

Anyone else care to weigh in on the subject? I'm leaning towards the
flow approach..

-Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to