Re: Form strangeness
You've perfectly defined my puzzle. On some pages, it recognizes the form post. On a very small small number, it doesn't. I'm not sure the difference, but I'm trying to figure it out now. On 6/12/07 4:41 PM, "Claude Schneegans" <[EMAIL PROTECTED]> wrote: >>> When index.cfm is executed, it calls the appropriate template or function > based on the contents of the "page" variable > > Ok, but how does it call it, how does it recognizes that it was called > with method=POST and how will it call the page using the appropriate method? -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280864 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
>>When index.cfm is executed, it calls the appropriate template or function based on the contents of the "page" variable Ok, but how does it call it, how does it recognizes that it was called with method=POST and how will it call the page using the appropriate method? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280855 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
If the page, for example, is /page/memberhome/whatever The custom 404 handler calls index.cfm Application.cfc executes, runs the parse url function, and returns an array in the request scope with the variables parsed out, in the above case: Request.rq.page = memberhome Request.rq.whatever = empty string When index.cfm is executed, it calls the appropriate template or function based on the contents of the "page" variable On 6/12/07 2:16 PM, "Claude Schneegans" <[EMAIL PROTECTED]> wrote: >>> The application uses a function called in application.cfc to deconstruct > friendly urls into ... Well ... Not so friendly urls. > > Ok, but how ist the correct template finally called by the function? -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280838 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
> > Actually, it sounds like a redirect issue. Do you have a custom 404 > error handler defined in IIS or are you using something like > isapi-rewrite to restructure your url? If your rewrite mechanism is > not working properly then the 404 would redirect you using a GET, not > the original POST. > > Dean You may be right about that -- I do use a custom 404 redirect. What I don't get is why some forms work and some don't. I'm going to do some playing with it and see if I can pin it down. -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280835 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
>>The application uses a function called in application.cfc to deconstruct friendly urls into ... Well ... Not so friendly urls. Ok, but how ist the correct template finally called by the function? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280834 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
On 6/12/07, Claude Schneegans <[EMAIL PROTECTED]> wrote: > >>The page I was calling: > > /page/memberhome/action/action/campaignid/12 > > When I changed the form to call: > > /index.cfm?page=memberhome&action=action&campaignid=12 > > It worked fine. > > Hmmm... Could it be some problem with the cache? > The first address shows no parameter, so it could be interpreted as the > same page as the first call to the form > which was probably with method GET by default. Actually, it sounds like a redirect issue. Do you have a custom 404 error handler defined in IIS or are you using something like isapi-rewrite to restructure your url? If your rewrite mechanism is not working properly then the 404 would redirect you using a GET, not the original POST. Dean -- __ Dean Lawrence, CIO/Partner Internet Data Technology 888.GET.IDT1 ext. 701 * fax: 888.438.4381 http://www.idatatech.com/ Corporate Internet Development and Marketing Specialists ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280832 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
>>The page I was calling: /page/memberhome/action/action/campaignid/12 When I changed the form to call: /index.cfm?page=memberhome&action=action&campaignid=12 It worked fine. Hmmm... Could it be some problem with the cache? The first address shows no parameter, so it could be interpreted as the same page as the first call to the form which was probably with method GET by default. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280831 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
All right. I don't have a clue why this worked. The application uses a function called in application.cfc to deconstruct friendly urls into ... Well ... Not so friendly urls. The page I was calling: /page/memberhome/action/action/campaignid/12 When I changed the form to call: /index.cfm?page=memberhome&action=action&campaignid=12 It worked fine. What doesn't make sense is that I use the same url scheme everywhere else in my app, and the forms work just fine. Hmmm. On 6/12/07 1:52 PM, "Claude Schneegans" <[EMAIL PROTECTED]> wrote: > In my case, the problem happens under CF5. > > The problem might be occuring ever time under some circumstances, but > I've never > been able to reproduce it. > >>> Now I'm eliminating > chunks of code line by line to see if I can identify a particular element > that is causing it. > > Very good way to find the problem. > Please let us know if you find something. -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280830 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
In my case, the problem happens under CF5. The problem might be occuring ever time under some circumstances, but I've never been able to reproduce it. >>Now I'm eliminating chunks of code line by line to see if I can identify a particular element that is causing it. Very good way to find the problem. Please let us know if you find something. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280829 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form strangeness
Is this perhaps not the only on the page? -Original Message- From: Charles Sheehan-Miles [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 11:14 AM To: CF-Talk Subject: Re: Form strangeness Ok ... Now this is weird. With some more exploring on this, I found that when the form is submitted, I get the following in the cgi scope: Content_type: application/x-www-form-urlencoded Request_method: GET Even though the form is clearly a POST. Has anyone encountered this? On 6/12/07 10:45 AM, "Charles Sheehan-Miles" <[EMAIL PROTECTED]> wrote: > Hello all, > > Quick question, I'm wondering if anyone has ever encountered this. > > I have a page that submits a form back to itself. I'm testing for the > contents by doing a simple cfdump for the form scope. When I submit the > form, the page reloads, and nothing submits. The form scope shows an empty > structure. > > Here's what it looks like: > > > "Submit"> > > returnvariable="message"> > > > > > > > > > > > > > > > > > #message# > > > > > > > > > > > > > > Some logic to determine which fields to display. This is working > properly > > > Finished? type="submit" value="Send my message!"> > > > > > > > > > > -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280828 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
Hmm. I'm using CFMX. I'm getting it consistently on this particular form, but what's strange is the form used to work -- I first observed the problem yesterday, and it has been absolutely consistent since then. I'm not sure what you mean about the form resubmitting itself. It's pretty basic: form on a page. User hits submit, and it should go back to the same page to process. Nothing there in the form scope. I've got a lot of forms in this application which operate the same way, and as far as I can tell, the rest of them work. Definitely cross-browser -- I've testing IE7, Camino, Firefox and Safari, all have the same problem. I did have it processing out of a CFC, but I've taken the logic out, placed it in a standalone template, and get the same failure. Now I'm eliminating chunks of code line by line to see if I can identify a particular element that is causing it. On 6/12/07 1:33 PM, "Claude Schneegans" <[EMAIL PROTECTED]> wrote: >>> Has anyone encountered this? > > Yes, from time to time. > > Now you say that you are getting this error when the form resubmits itself? > This is a new element in the puzzle. > And also, you confirm that IIS received it as POST, then it looks like > the problem is CF related. > I thought that it was under IE 7 only, because the first time I noticed it, > it happened only with users who recently switched for IE7, but it may be > only a coincidence after all. > > Are you under CF 5 or CFMX? > Are you having the problem EVERY time, or just from time to time? > > I'll check my code to see if I have forms that resumbit themselves. > > > > > ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280825 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
>>The form says POST CGI.REQUEST_METHOD shows GET Exactly the same problem here :-( ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280822 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
>>Has anyone encountered this? Yes, from time to time. Now you say that you are getting this error when the form resubmits itself? This is a new element in the puzzle. And also, you confirm that IIS received it as POST, then it looks like the problem is CF related. I thought that it was under IE 7 only, because the first time I noticed it, it happened only with users who recently switched for IE7, but it may be only a coincidence after all. Are you under CF 5 or CFMX? Are you having the problem EVERY time, or just from time to time? I'll check my code to see if I have forms that resumbit themselves. ~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280821 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
The form says POST CGI.REQUEST_METHOD shows GET IIS logs show POST Weird. On 6/12/07 1:23 PM, "Claude Schneegans" <[EMAIL PROTECTED]> wrote: >>> I looked through the archives and found some folks who've had the same > problem > > Yeap! Can you dump CGI.REQUEST_METHOD variable and see if it contains > GET or POST? -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280818 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
>>I looked through the archives and found some folks who've had the same problem Yeap! Can you dump CGI.REQUEST_METHOD variable and see if it contains GET or POST? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280817 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
Hmm. Yeah -- tried that. Tried to explicitly set the encoding type. I just went through the IIS logs, and they show the request as a POST. So it's somewhere in the processing in the Coldfusion side. I'm banging my head into the wall at this point. On 6/12/07 1:09 PM, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: >> Yeah, it is. Actually, it's going to the right page, but I found that for >> some reason its doing a "GET" instead of a "POST" > > Did you try giving your form tag a name attribute? Shouldn't make a > difference but that's the only thing I see that's out of the ordinary. > > -- Josh > > > ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280815 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
> Yeah, it is. Actually, it's going to the right page, but I found that for > some reason its doing a "GET" instead of a "POST" Did you try giving your form tag a name attribute? Shouldn't make a difference but that's the only thing I see that's out of the ordinary. -- Josh ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280813 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
Yeah, it is. Actually, it's going to the right page, but I found that for some reason its doing a "GET" instead of a "POST" I looked through the archives and found some folks who've had the same problem but only with IE7. I'm hitting this on all browsers. On 6/12/07 12:10 PM, "koen darling" <[EMAIL PROTECTED]> wrote: > Be sure the tag, which includes "#actionpage#" is within a cfoutput > block. Take a look at the source of your form to be certain it's set to post > to the right page. > > Koen > > > ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280798 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form strangeness
Ok ... Now this is weird. With some more exploring on this, I found that when the form is submitted, I get the following in the cgi scope: Content_type: application/x-www-form-urlencoded Request_method: GET Even though the form is clearly a POST. Has anyone encountered this? On 6/12/07 10:45 AM, "Charles Sheehan-Miles" <[EMAIL PROTECTED]> wrote: > Hello all, > > Quick question, I'm wondering if anyone has ever encountered this. > > I have a page that submits a form back to itself. I'm testing for the > contents by doing a simple cfdump for the form scope. When I submit the > form, the page reloads, and nothing submits. The form scope shows an empty > structure. > > Here's what it looks like: > > > "Submit"> > > returnvariable="message"> > > > > > > > > > > > > > > > > > #message# > > > > > > > > > > > > > > Some logic to determine which fields to display. This is working > properly > > > Finished? type="submit" value="Send my message!"> > > > > > > > > > > -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280799 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form strangeness
Be sure the tag, which includes "#actionpage#" is within a cfoutput block. Take a look at the source of your form to be certain it's set to post to the right page. Koen ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280793 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Form strangeness
Hello all, Quick question, I'm wondering if anyone has ever encountered this. I have a page that submits a form back to itself. I'm testing for the contents by doing a simple cfdump for the form scope. When I submit the form, the page reloads, and nothing submits. The form scope shows an empty structure. Here's what it looks like: #message# Some logic to determine which fields to display. This is working properly Finished? -- Charles Sheehan-Miles http://www.sheehanmiles.com Author of Republic: A Novel of America's Future http://www.amazon.com/gp/product/0979411424?tag=sheehanmiles-20 ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280772 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4