Re: SOLVED? Re: Method=GET received as POST by CF

2007-06-27 Thread Claude Schneegans
 A little late to this thread.

I even started a new one on the same issue ;-)

 Let's look at it this way, there are many ways to submit.

Of course there are, but whatever way is used, if the form has its 
attribute METHOD=POST,
the only way it could be submitted as GET would be to change it by JS to 
GET, which none of
my validation routines does.

I even used a JS function to add the value of the METHOD attribute in 
the url parameters,
at the time the form is submitted, and when I get the problem, I can see 
on the server that
in the url I have mthod=post and in the CGI variable, I have 
REQUEST_METHOD=GET
How about that?

 I would look at a routine that was pure validation, then you could 
fire the
event (your choosing) then decide on the method to validate.

The method is decided in the FORM tag, I never use METHOD=GET.
The method is even verified to be POST at submit, but still, a couple of 
times per week,
I get a request with method set to get instead of 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:282351
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: SOLVED? Re: Method=GET received as POST by CF

2007-06-26 Thread Andrew Scott
A little late to this thread.

But Dave is right.

Let's look at it this way, there are many ways to submit. But each and every
method is because an event was fired to do so, just that using the onClick
event on the input type of submit, is a way to override the event. And as
you mentioned to return true will fire the event and return false will abort
/ cancel the thread.

I would look at a routine that was pure validation, then you could fire the
event (your choosing) then decide on the method to validate. Most Ajax
frameworks with validation work in this manner, the best thing is that the
code is open for reuse and minimises the duplication of code as well.

Just symantecs is what it comes down too.


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273



-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 6 June 2007 7:34 AM
To: CF-Talk
Subject: Re: SOLVED? Re: Method=GET received as POST by CF

 No, but it's a little ambiguous, since your event handler calls the 
submit
method if I read the thread accurately.

No, it doesn't. If the onClick event returns false, the click on the 
submit button is cancelled,
then ther is no submit, if it returns true, the submit proceeds 
normally. I don't call submit().

For instance, I have forms to edit some items.
Two submit buttons, one to confirm, this one calls the validation 
function, the other one to delete the item,
and this one of course needs no validation. The purpose of this 
procedure is to force users
to see what they want to delete before they delete it.

The only problem is when a user press the Return key, which would 
normally trigger the submit
without calling the validation function.
But I had to inhibit the return key on any field except text areas 
anyway, because I
have some users moron enough to press Return in text fields because they 
want to have several lines ;-)

-- 
___
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:282299
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SOLVED? Re: Method=GET received as POST by CF

2007-06-05 Thread Claude Schneegans
  It could be that the problem is using the submit() method within JS.

Glad if your problem is solved.
My case is a bit different: I'm using INPUT TYPE=submit VALUE=...  
onClick=;return checkInput()
And checkInput alwas returns explicitely true or false.
 
However I just noticed that I have a semi-colon right before the return 
statement (fossil of a former first statement).
This is equivalent of having a null statement, and who knows, it might 
be a source of confusion for IE7?
I just removed it, and let's see what's going on...

-- 
___
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:280158
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: SOLVED? Re: Method=GET received as POST by CF

2007-06-05 Thread Josh Nathanson
 My case is a bit different: I'm using INPUT TYPE=submit VALUE=...
 onClick=;return checkInput()
 And checkInput alwas returns explicitely true or false.

That should work then.  Curious to see if removing the semicolon helps - I 
wouldn't be surprised if that is confusing some browsers.

-- Josh


~|
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:280160
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: SOLVED? Re: Method=GET received as POST by CF

2007-06-05 Thread Dave Watts
 Glad if your problem is solved.
 My case is a bit different: I'm using INPUT TYPE=submit 
 VALUE=...  
 onClick=;return checkInput()
 And checkInput alwas returns explicitely true or false.
  
 However I just noticed that I have a semi-colon right before 
 the return statement (fossil of a former first statement).
 This is equivalent of having a null statement, and who knows, 
 it might be a source of confusion for IE7?
 I just removed it, and let's see what's going on...

I think you would be better served by using your form's onsubmit event
handler to check input, instead of this.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~|
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:280163
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SOLVED? Re: Method=GET received as POST by CF

2007-06-05 Thread Claude Schneegans
 I think you would be better served by using your form's onsubmit event
handler to check input, instead of this.

Not that easy, because I have several submit buttons, and they perform 
different checking depending on which one is clicked.
And all buttons and functionalities are in a common editFooter.cfm, so I 
don't have to worry about them when I create a form.

Anyway, an onClick event on a submit button returning true is not 
supposed to change the method from POST to GET is'nt it?
No more than an onSubmit.

-- 
___
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:280168
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: SOLVED? Re: Method=GET received as POST by CF

2007-06-05 Thread Dave Watts
 Not that easy, because I have several submit buttons, and 
 they perform different checking depending on which one is clicked.
 And all buttons and functionalities are in a common 
 editFooter.cfm, so I don't have to worry about them when I 
 create a form.

You should be able to capture the event and identify the source without any
difficulty.

 Anyway, an onClick event on a submit button returning true is 
 not supposed to change the method from POST to GET is'nt it?
 No more than an onSubmit.

No, but it's a little ambiguous, since your event handler calls the submit
method if I read the thread accurately.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Macromedia ColdFusion MX7
Upgrade to MX7  experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280181
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: SOLVED? Re: Method=GET received as POST by CF

2007-06-05 Thread Claude Schneegans
 No, but it's a little ambiguous, since your event handler calls the 
submit
method if I read the thread accurately.

No, it doesn't. If the onClick event returns false, the click on the 
submit button is cancelled,
then ther is no submit, if it returns true, the submit proceeds 
normally. I don't call submit().

For instance, I have forms to edit some items.
Two submit buttons, one to confirm, this one calls the validation 
function, the other one to delete the item,
and this one of course needs no validation. The purpose of this 
procedure is to force users
to see what they want to delete before they delete it.

The only problem is when a user press the Return key, which would 
normally trigger the submit
without calling the validation function.
But I had to inhibit the return key on any field except text areas 
anyway, because I
have some users moron enough to press Return in text fields because they 
want to have several lines ;-)

-- 
___
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:280185
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4