RE: sending entire Form back on a url string

2008-03-27 Thread Bobby Hartsfield
?x=x&#i#=#form[i]# -Original Message- From: Matt Blatchley [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2008 11:52 AM To: CF-Talk Subject: Re: sending entire Form back on a url string I actually wrote that incorrectly... StructKeyArray(form) will return an array of the Key

Re: sending entire Form back on a url string

2008-03-27 Thread Matt Blatchley
I actually wrote that incorrectly... StructKeyArray(form) will return an array of the Keys in the Struct, not convert it, then you'd use form[arrayName[i]] to access the value of the referenced Key >I would convert the Struct into an Array using StructKeyArray(form). Then > loop through th

Re: sending entire Form back on a url string

2008-03-27 Thread Matt Blatchley
EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, March 27, 2008 9:32 AM Subject: Re: sending entire Form back on a url string > >Morning, >> >>Having a brain freeze. >> >>I want to send an entire set of form variables back to the previous page

Re: sending entire Form back on a url string

2008-03-27 Thread Christopher Vigliotti
Sorry if I missed part of this conversation, but do you have to use a url string? Throwing the form scope into a persistent scope would be a lot easier. - Chris On Thu, Mar 27, 2008 at 10:32 AM, Don L <[EMAIL PROTECTED]> wrote: > >Morning, > > > >Having a brain freeze. > > > >I want to send an

Re: sending entire Form back on a url string

2008-03-27 Thread Don L
>Morning, > >Having a brain freeze. > >I want to send an entire set of form variables back to the previous page on >the url string. > >Obviously > >previous_page.cfm?formStructure=#Form# > >doesn't work. I can't for the life of me remember how to do this. > >Cheers > >Will Will, the follo

Re: sending entire Form back on a url string

2008-02-11 Thread Claude Schneegans
>>but the object will remain in the heap because it has another reference. Ah ok, I see. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160

RE: sending entire Form back on a url string

2008-02-11 Thread Dave Watts
> Ok, I see what you mean, but if you do it this way, won't the > session.form structure disappear in the same time the form > structure will? No, both Form and Session.form will be references to the same object, which actually contains the form data. The Form reference will go out of scope, but

Re: sending entire Form back on a url string

2008-02-11 Thread Claude Schneegans
>>You should only have to copy structures by value (using either StructCopy or Duplicate) if you want to maintain two separate structures, so that changes to one don't affect the other. That is not the case here. Ok, I see what you mean, but if you do it this way, won't the session.form structur

RE: sending entire Form back on a url string

2008-02-11 Thread Dave Watts
> I think I tried first with structCopy ans encountered some > problem, I don't remember which one, so I changed for > StructDuplicate. This was years ago. > > Anyway, since the form scope is not supposed to contain > structures, the two functions are equivalent. You shouldn't have to copy the

Re: sending entire Form back on a url string

2008-02-11 Thread Claude Schneegans
>>You shouldn't have to duplicate the form. Just copy it into the Session scope. I think I tried first with structCopy ans encountered some problem, I don't remember which one, so I changed for StructDuplicate. This was years ago. Anyway, since the form scope is not supposed to contain structur

RE: sending entire Form back on a url string

2008-02-11 Thread Dave Watts
> To save the form: > You shouldn't have to duplicate the form. Just copy it into the Session scope. The original form will go out of scope after the page has completed, so you don't have to worry about accidentally changing one variable by referencing the other. Dave Watts, CTO, Fig Leaf Softwa

Re: sending entire Form back on a url string

2008-02-11 Thread Greg Luce
t; > Will > > -Original Message- > From: Dave Watts [mailto:[EMAIL PROTECTED] > Sent: 08 February 2008 19:23 > To: CF-Talk > Subject: RE: sending entire Form back on a url string > > > But isn't there a finite limit on how many characters you can put in a >

Re: sending entire Form back on a url string

2008-02-11 Thread Claude Schneegans
>>Stick the form in the session scope maybe? Definitely: To save the form: Then in the form action template: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to dat

RE: sending entire Form back on a url string

2008-02-11 Thread Will Swain
Thanks guys. Bearing in mind that limit, is there a better way? Stick the form in the session scope maybe? Cheers Will -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: 08 February 2008 19:23 To: CF-Talk Subject: RE: sending entire Form back on a url string >

RE: sending entire Form back on a url string

2008-02-08 Thread Dave Watts
> But isn't there a finite limit on how many characters you can > put in a URL string? Yes, and my understanding is that the limit is browser-specific. For IE 7, it's 2048 characters for a GET request: http://support.microsoft.com/kb/208427 This link goes into more detail on the topic, and cover

Re: sending entire Form back on a url string

2008-02-08 Thread Brian Swartzfager
But isn't there a finite limit on how many characters you can put in a URL string? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600

RE: sending entire Form back on a url string

2008-02-08 Thread Dave Watts
> I want to send an entire set of form variables back to the > previous page on the url string. > > Obviously > > previous_page.cfm?formStructure=#Form# > > doesn't work. I can't for the life of me remember how to do this. Loop through the FORM scope and build the appropriate string:

Re: sending entire Form back on a url string

2008-02-08 Thread Tom Chiverton
On Friday 08 Feb 2008, Will Swain wrote: > doesn't work. I can't for the life of me remember how to do this. Loop over structKeylist(form) ? -- Tom Chiverton Helping to authoritatively enable principle-centered deliverables on: http://thefalken.livejournal.com **

sending entire Form back on a url string

2008-02-08 Thread Will Swain
Morning, Having a brain freeze. I want to send an entire set of form variables back to the previous page on the url string. Obviously previous_page.cfm?formStructure=#Form# doesn't work. I can't for the life of me remember how to do this. Cheers Will ~