Re: passing many variables between pages

2004-12-10 Thread Larry Lyons
>I have a typical form where there are 10 - 15 form variables that must
>be passed through multiple templates...
>
>I have always used the hidden input method 
>
>
>Is there a way to take all those hidden input lines and put them into
>one variable and just pass that one variable from template to template
>rather than having 15 - 20 hidden input lines in each template?
>
>Or is there some other good technique for this?
>
>TIA
>Tim

Tim,

Ben Forta wrote a very good custom tag call CF_EmbedFields. From the writeup on 
the Macromedia Exchange:

CF_EmbedFields simplifies the process of creating multi-part HTML forms. A 
single call to this tag (without any attributes) embeds all passed form fields 
in the form as hidden fields.

You can get it at the MM exchange,
http://www.macromedia.com/cfusion/exchange/index.cfm#view=sn106&viewName=Exchange%20Search%20Details&loc=en_us&authorid=19588859&page=0&scrollPos=0&subcatid=0&snid=sn106&itemnumber=8&extid=101&catid=0

and for those who are wrap challenged:
http://www.houseoffusion.com/tiny.cfm/95 

hth,

larry
--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187099
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Aaron Rouse
Most processes I have seen with similar needs do pretty much the exact
method.  It actually is an array of structures, if memory serves me
right since I do not have access to that code presently.  There are
always many ways to skin a cat, go with whatever way you feel meets
your spec the best and the way that you feel you understand and can
impliment the best.

On Fri, 10 Dec 2004 17:34:35 +, Keith Gaughan
<[EMAIL PROTECTED]> wrote:
> Aaron Rouse wrote:
> 
> > One of our systems just creates a structure, with keys being the
> > hidden field names and then they have their values.  That is assigned
> > to a session variable and then referenced by the pages you are
> > navigating through.
> 
> That's assuming a lot, don't you think? Not to mention potentially a lot
> of data floating around in the session scope.
> 
> --
> Keith Gaughan, Developer
> Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
> http://digital-crew.com/
> 
> 

~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187052
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Aaron Rouse
One of our systems just creates a structure, with keys being the
hidden field names and then they have their values.  That is assigned
to a session variable and then referenced by the pages you are
navigating through.


On Fri, 10 Dec 2004 16:23:52 +, Keith Gaughan
<[EMAIL PROTECTED]> wrote:
> Mark Drew wrote:
> 
> > Serialise it into wddx, encode it to base 64, put it in hidden var
> >
> > 
> > 
> > 
> 
> But then you have the awkward problem of deserialising it later on each
> page.
> 
> --
> Keith Gaughan, Developer
> Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
> http://digital-crew.com/
> 
> 

~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187027
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Keith Gaughan
Aaron Rouse wrote:

> One of our systems just creates a structure, with keys being the
> hidden field names and then they have their values.  That is assigned
> to a session variable and then referenced by the pages you are
> navigating through.

That's assuming a lot, don't you think? Not to mention potentially a lot
of data floating around in the session scope.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187042
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: passing many variables between pages

2004-12-10 Thread Tim Laureska
Thanks Deith... I'll take a look I guess I could just do a cfinclude
also?

-Original Message-
From: Keith Gaughan [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 10, 2004 10:28 AM
To: CF-Talk
Subject: Re: passing many variables between pages

Tim Laureska wrote:

> I have a typical form where there are 10 - 15 form variables that must
> be passed through multiple templates...
> 
> I have always used the hidden input method 
> 
> 
> Is there a way to take all those hidden input lines and put them into
> one variable and just pass that one variable from template to template
> rather than having 15 - 20 hidden input lines in each template?
> 
> Or is there some other good technique for this?

You might want to try my CF_WriteHiddenVariables tag:

 http://free.cftagstore.com/?page=viewtag&tagId=43

You just specify the names of the variables you want to pass from page 
to page, and it generates all the hidden variable tags needed, properly
escaping any dodgy characters.

K.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/



~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186991
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Joe Rinehart
Backing the form with a session-scoped CFC could encapsulate it all nicely, too.

-joe


On Fri, 10 Dec 2004 14:45:57 -0200, Marco Antonio C. Santos
<[EMAIL PROTECTED]> wrote:
> Using SESSION structure could be the best answer for Tim questions...
> 
> Best regards
> 
> Marco
> 
> On Fri, 10 Dec 2004 10:41:17 -0600, Aaron Rouse <[EMAIL PROTECTED]> wrote:
> > One of our systems just creates a structure, with keys being the
> > hidden field names and then they have their values.  That is assigned
> > to a session variable and then referenced by the pages you are
> > navigating through.
> >
> > On Fri, 10 Dec 2004 16:23:52 +, Keith Gaughan
> >
> >
> > <[EMAIL PROTECTED]> wrote:
> > > Mark Drew wrote:
> > >
> > > > Serialise it into wddx, encode it to base 64, put it in hidden var
> > > >
> > > > 
> > > > 
> > > > 
> > >
> > > But then you have the awkward problem of deserialising it later on each
> > > page.
> > >
> > > --
> > > Keith Gaughan, Developer
> > > Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
> > > http://digital-crew.com/
> > >
> > >
> >
> >
> 
> 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187034
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Marco Antonio C. Santos
Using SESSION structure could be the best answer for Tim questions...

Best regards

Marco


On Fri, 10 Dec 2004 10:41:17 -0600, Aaron Rouse <[EMAIL PROTECTED]> wrote:
> One of our systems just creates a structure, with keys being the
> hidden field names and then they have their values.  That is assigned
> to a session variable and then referenced by the pages you are
> navigating through.
> 
> On Fri, 10 Dec 2004 16:23:52 +, Keith Gaughan
> 
> 
> <[EMAIL PROTECTED]> wrote:
> > Mark Drew wrote:
> >
> > > Serialise it into wddx, encode it to base 64, put it in hidden var
> > >
> > > 
> > > 
> > > 
> >
> > But then you have the awkward problem of deserialising it later on each
> > page.
> >
> > --
> > Keith Gaughan, Developer
> > Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
> > http://digital-crew.com/
> >
> >
> 
> 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187033
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Keith Gaughan
Mark Drew wrote:

> Serialise it into wddx, encode it to base 64, put it in hidden var
> 
> 
> 
> 

But then you have the awkward problem of deserialising it later on each
page.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187020
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Mark Drew
Serialise it into wddx, encode it to base 64, put it in hidden var







On Fri, 10 Dec 2004 10:29:05 -0500, Tim Laureska <[EMAIL PROTECTED]> wrote:
> I have a typical form where there are 10 - 15 form variables that must
> be passed through multiple templates...
> 
> I have always used the hidden input method
> 
> 
> Is there a way to take all those hidden input lines and put them into
> one variable and just pass that one variable from template to template
> rather than having 15 - 20 hidden input lines in each template?
> 
> Or is there some other good technique for this?
> 
> TIA
> Tim
> 
> 

~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186994
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: passing many variables between pages

2004-12-10 Thread Keith Gaughan
Tim Laureska wrote:

> I have a typical form where there are 10 - 15 form variables that must
> be passed through multiple templates...
> 
> I have always used the hidden input method 
> 
> 
> Is there a way to take all those hidden input lines and put them into
> one variable and just pass that one variable from template to template
> rather than having 15 - 20 hidden input lines in each template?
> 
> Or is there some other good technique for this?

You might want to try my CF_WriteHiddenVariables tag:

 http://free.cftagstore.com/?page=viewtag&tagId=43

You just specify the names of the variables you want to pass from page 
to page, and it generates all the hidden variable tags needed, properly
escaping any dodgy characters.

K.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186989
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


passing many variables between pages

2004-12-10 Thread Tim Laureska
I have a typical form where there are 10 - 15 form variables that must
be passed through multiple templates...

I have always used the hidden input method 


Is there a way to take all those hidden input lines and put them into
one variable and just pass that one variable from template to template
rather than having 15 - 20 hidden input lines in each template?

Or is there some other good technique for this?

TIA
Tim 



~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186986
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54