Re: How to: Submitting a form to self

2009-01-18 Thread Will Tomlinson
> How do I get the above section to submit the selected voucher to 
> populate the remainder of the form with the relevant details before I 
> submit the form for processing? TIA 

Sounds like you could use an onchange event in that select to submit the form. 
Use that for your  to run that query for the card data, and display it 
inmore form items. 

Then use your form.submit variable to actually process the form. 

it'd be niftier if you used some AJAX to do it. 

Will


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318147
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


How to: Submitting a form to self

2009-01-18 Thread Fawzi Amadu
I am developing a site to help sell phone cards and I want to have a form that 
allows the seller to choose the card they want to sell from a list. I want to 
automatically populate the rest of the form with the relevant information about 
the card before submitting the complete details for printing on a separate page.

I currently have the following code:




   SELECT voucherName
   FROM Voucher





  






  
  
Voucher:

   
   


  
 
  
  
  
  

   



How do I get the above section to submit the selected voucher to populate the 
remainder of the form with the relevant details before I submit the form for 
processing? TIA 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318146
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Evaluate a function on submitting a form

2009-01-13 Thread Damayanti Gupta
Hi,
I have a coldfusion form. On submitting it, I need to evaluate a function  
based on user input in the form. On the basis of this evaluation there should 
be a popup box. How would I do this?

The popup is handled by javascript.The javascript function is called from the 
onSubmit of the form like -

cfform
format="html" name="FormName" id="FormName" method="post" action="MyForm.cfm" 
enctype="multipart/form-data" onSubmit="return confirmValue()">
However, javascript cannot evaluate a value, because it is client code. How do 
I then do the evaluation when form is submitted?
Thanks
NG

STATEMENT OF CONFIDENTIALITY:
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain confidential or privileged information. If you are not the intended 
recipient, or the person responsible for delivering the e-mail to the intended 
recipient, be advised you have received this message in error and that any use, 
dissemination, forwarding, printing, or copying is strictly prohibited. Please 
notify Archemix Corp. immediately at either (617) 621-7700 or by return fax at 
(617) 621-9300 and destroy all copies of this message and any attachments.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317903
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: submitting a form

2008-06-28 Thread Claude Schneegans
 >>Have you tried submitting the form with
the same values?  Same browser/OS?

I haver noticed that Opera has a check box in the alert: "Stop executing 
scripts in this page".
This is at least one possibility.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: SOT: submitting a form

2008-06-28 Thread Kay Smoljak
On Sat, Jun 28, 2008 at 2:59 AM, Michael Dinowitz
<[EMAIL PROTECTED]> wrote:
> Sorry for the inconvenience. We've had 3 or 4 spam messages get through this
> year and I'd like to make sure that doesn't happening anymore.

Thanks for the outstanding job you do, Michael :)

-- 
Kay Smoljak
business: www.cleverstarfish.com
coldfusion: kay.smoljak.com
personal: enterthegoatlady.com | heapsbad.com

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: submitting a form

2008-06-27 Thread rex
Claude Schneegans wrote:
>  >>It is possible to spoof anything in an HTTP request to your server.
>
> Of course, but not in this case.
>
>   
How do you know that the submission was from your page?  Do you check 
for the http referer on your action page?  Like Brad Wood and Dave 
Francis said, someone could have submitted the data from a similar form 
without the js checks (like a form copied locally and submitted to your 
action page).

Or like Sonny Savage mentioned, it could be something simple like js 
failure.  It's happened so often that the 0.001% of your user base has a 
wierd client that displayed the form anyways and jumped your validation 
and posted to your action page.  Or, your js that checks the two 
required date fields has a bug.

If you have a created-timestamp column on your registration table, you 
can map the date/time of the insertion against your web server logs to 
look at the form submission entry, and find out the user-agent and 
previous GET/POST attempts from the same IP.  Also look at the status 
pages.  CF will serve up 500 errors if there was a server exception, 
like a database error.  If someone did try spoofing your submission 
page, it would have taken him multiple tries to make a successful 
submission, and this would be logged by the web server.  The logs will 
also show you the referer (this is disabled by default on IIS).

Also, don't eliminate the possibility that the data was not inserted 
through the action page.  Make sure that the logs show that it was 
inserted by the action page.  If your action page inserts into the 
database, and also cfmails you, then you can at least confirm via the 
email you received that it was submitted through the website.  But if 
all your action page does is insert into the db and display a "success" 
screen to your user, then all you have to prove that it was through the 
website is the weblogs.  If you can't find the appropriate web 
submission in the logs, then you have a db problem.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: SOT: submitting a form

2008-06-27 Thread denstar
On Thu, Jun 26, 2008 at 12:57 PM, Claude Schneegans
<[EMAIL PROTECTED]> wrote:

> Is there some other way to submit a form that will not trigger a click
> on the submit button
> that I didn't think of ?

A robot?

Seriously, that's what I'd guess.

Kinda a crappy one too.  :)p

-- 
Egg Shen: Lo Pan is down there.
Jack Burton: Down where?
Egg Shen: Where is the universe?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: SOT: submitting a form

2008-06-27 Thread Claude Schneegans
 >>Your TO address is announcing itself as "CF-Talk House of Fusion". It's
technically correct but my code is a little too sensitive. Let me see what I
can do to make it a little less sensitive.

This is what I suspected. I will remove the superfluous name in the 
address then.
Thanks.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: SOT: submitting a form

2008-06-27 Thread Michael Dinowitz
The issue is with how you've stored the list name and a new security
feature. An email address can have two parts, the address itself and how it
announces itself. My email is mdinowit but it announces itself as "Michael
Dinowitz". If an email comes to the list and announces itself as something
other than the list name, it's held for review. This stops the huge amount
of spam that is given random names.
Your TO address is announcing itself as "CF-Talk House of Fusion". It's
technically correct but my code is a little too sensitive. Let me see what I
can do to make it a little less sensitive.
Sorry for the inconvenience. We've had 3 or 4 spam messages get through this
year and I'd like to make sure that doesn't happening anymore.

On Fri, Jun 27, 2008 at 2:05 PM, Claude Schneegans <
[EMAIL PROTECTED]> wrote:

>  >>Is there any problem with the list?
>
> Apparently, I can answer, but not send new messages.
> Ok, let me answer to myself on this one ;-)
>
> I have form with a Javascript validating system.
> After hundreds of successful submits of the form, I recently got one
> form submitted with two mandatory date fields empty.
> If a visitor has Javascript disabled, he cannot even see the form, then
> I suppose it is not the issue.
>
> The Javascript validation system is triggered by onClick="return
> checkInput()" on the submit button.
> A form can also be submitted by pressing Enter, but this also triggers a
> click on the submit button,
> so the validation is performed as well.
>
> Is there some other way to submit a form that will not trigger a click
> on the submit button
> that I didn't think of ?
>
> --
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


SOT: submitting a form

2008-06-27 Thread Claude Schneegans
Hi,

I have form with a Javascript validating system.
After hundreds of successful submits of the form, I recently got one 
form submitted with two mandatory date fields empty.
If a visitor has Javascript disabled, he cannot even see the form, then 
I suppose it is not the issue.

The Javascript validation system is triggered by onClick="return 
checkInput()" on the submit button.
A form can also be submitted by pressing Enter, but this also triggers a 
click on the submit button,
so the validation is performed as well.

Is there some other way to submit a form that will not trigger a click 
on the submit button
that I didn't think of ?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


SOT: submitting a form

2008-06-27 Thread Claude Schneegans
Hi,

I have form with a Javascript validating system.
After hundreds of successful submits of the form, I recently got one
form submitted with two mandatory date fields empty.
If a visitor has Javascript disabled, he cannot even see the form, then
I suppose it is not the issue.

The Javascript validation system is triggered by onClick="return
checkInput()" on the submit button.
A form can also be submitted by pressing Enter, but this also triggers a
click on the submit button,
so the validation is performed as well.

Is there some other way to submit a form that will not trigger a click
on the submit button
that I didn't think of ?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: submitting a form

2008-06-27 Thread Sonny Savage
Maybe there's an issue with the JS?  Have you tried submitting the form with
the same values?  Same browser/OS?

Edward A Savage Jr - "Sonny"
Senior Software Engineer
Creditdiscovery, LLC
"An appeaser is one who feeds a crocodile, hoping it will eat him last." ~
Sir Winston Churchill

On Fri, Jun 27, 2008 at 2:51 PM, Claude Schneegans <
[EMAIL PROTECTED]> wrote:

>  >>A bot?
>
> No way, the form was filled by a real person, all the rest of the
> information in the field make sense,
> including the mail address of the submitter. It is a membership
> registration form in an association.
>
>  >>It is possible to spoof anything in an HTTP request to your server.
>
> Of course, but not in this case.
>
> --
> ___
> REUSE CODE! Use custom tags;
> See http://www.contentbox.com/claude/customtags/tagstore.cfm
> (Please send any spam to this address: [EMAIL PROTECTED])
> Thanks.
>
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: submitting a form

2008-06-27 Thread Claude Schneegans
 >>A bot? 

No way, the form was filled by a real person, all the rest of the 
information in the field make sense,
including the mail address of the submitter. It is a membership 
registration form in an association.

 >>It is possible to spoof anything in an HTTP request to your server.

Of course, but not in this case.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: submitting a form

2008-06-27 Thread Claude Schneegans
 >>Why not do the checks in the  statement with an 'onSubmit='?

Well, good question. The main reason is that all forms in the system are 
independant and may have their own onSubmit.
But they must all have this checkInput () procedure.
The submit button, on the other hand is in a common include, so I'm sure 
that all forms will check input.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: submitting a form

2008-06-27 Thread Brad Wood
A bot?  

It is possible to spoof anything in an HTTP request to your server.  For
instance, I could fire up MS Fiddler and build an HTTP POST that looked
just like it came from your form but leave whatever fields I wanted
blank. 
Don't ever trust client-side anything.

~Brad

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 

Is there some other way to submit a form that will not trigger a click
on the submit button
that I didn't think of ?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: submitting a form

2008-06-27 Thread Dave Francis
Just a thought:
Why not do the checks in the  statement with an 'onSubmit='?
Then you don't care how they submit it?

(Another way to submit a form is to create your own page any way you
want to, just leave the action=www.yourpage.cfm)


-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 27, 2008 2:05 PM
To: CF-Talk
Subject: SOT: submitting a form

 >>Is there any problem with the list?

Apparently, I can answer, but not send new messages.
Ok, let me answer to myself on this one ;-)

I have form with a Javascript validating system.
After hundreds of successful submits of the form, I recently got one
form submitted with two mandatory date fields empty.
If a visitor has Javascript disabled, he cannot even see the form, then
I suppose it is not the issue.

The Javascript validation system is triggered by onClick="return
checkInput()" on the submit button.
A form can also be submitted by pressing Enter, but this also triggers a
click on the submit button, so the validation is performed as well.

Is there some other way to submit a form that will not trigger a click
on the submit button that I didn't think of ?

--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


SOT: submitting a form

2008-06-27 Thread Claude Schneegans
 >>Is there any problem with the list?

Apparently, I can answer, but not send new messages.
Ok, let me answer to myself on this one ;-)

I have form with a Javascript validating system.
After hundreds of successful submits of the form, I recently got one
form submitted with two mandatory date fields empty.
If a visitor has Javascript disabled, he cannot even see the form, then
I suppose it is not the issue.

The Javascript validation system is triggered by onClick="return
checkInput()" on the submit button.
A form can also be submitted by pressing Enter, but this also triggers a
click on the submit button,
so the validation is performed as well.

Is there some other way to submit a form that will not trigger a click
on the submit button
that I didn't think of ?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Submitting a form inside of cfdiv

2008-02-01 Thread Sam Farmer
If you have multiple cfforms and cfdivs on a page make sure to give each one
distinct names and things should work fine.  Otherwise you will get some
"interesting" behavior.

On Feb 1, 2008 11:41 AM, Dave Watts <[EMAIL PROTECTED]> wrote:

> > 
> > name 
> > yada http://ad.doubleclick.net/clk;160198600;22374440;w

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


RE: Submitting a form inside of cfdiv

2008-02-01 Thread Dave Watts
> 
> name 
> yada http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Submitting a form inside of cfdiv

2008-02-01 Thread [EMAIL PROTECTED] [EMAIL PROTECTED]
Does anyone know if there is an issue where you place a cfdiv in a cfform with 
with another cfform in the cfdiv that would not allow the form to submit in the 
cfdiv.  For Example:


name 
yada 




 


When I try to submit the form in the cfdiv it reloads the entire page not cfdiv.



Thank you,

Michael


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Submitting a form inside of cfdiv

2008-01-10 Thread Steve Sequenzia
Yeah, I got it working by changing my cfform to a normal html form. That makes 
sense,  thanks Azadi for the insight.

> that is only true for CFFORM tag, not FORM tag
> 
> read here:
> http://www.coldfusionjedi.com/index.
> cfm/2007/8/5/Reminder-about-forms-and-ColdFusion-8-Ajax-Containers
> 
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com
> 
> 
> 
> Cutter (CFRelated) wrote:
> > Either way really. Here's the blurb out of the LiveDocs
> >
> > "The ColdFusion Ajax container tags, cfdiv, cflayoutarea, cfpod, and 
> 
> > cfwindow, automatically submit any forms that they contain 
> > asynchronously. When the form is submitted, the result returned by 
> the 
> > action page replaces the contents of the container, but has no 
> effect on 
> > the rest of the page."
> >
> > Steve "Cutter" Blades
> > Adobe Certified Professional
> > Advanced Macromedia ColdFusion MX 7 Developer
> > _
> > http://blog.cutterscrossing.com
> >
> > Azadi Saryev wrote:
> >   
> >> i think you will find that using  instead of  
> (or 
> >> is it the other way around?) will do the trick.
> >> using one submits the form to cfdiv, the other replaces the main 
> page
> >>
> >> ---
> >> Azadi Saryev
> >> Sabai-dee.com
> >> http://www.sabai-dee.com
> >>
> >>
> >>
> >>
> >> 
> >
> > 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Submitting a form inside of cfdiv

2008-01-10 Thread Cutter (CFRelated)
Well, that does suck. 'The LiveDocs strike again...' So I guess the best
  thing to do is write your own async submit, then push the response to
the container in the callback.

This is actually insanely easy. Here's an example I had whipped up for 
my CF8 Ajax preso, which uses a combination of JQuery (to catch my 
button click event on an  I had placed in my form) 
and ColdFusion's Ajax.submitForm() javascript method:

$(document).ready(function(){
var frm = $('form#form1');
$('#fakeButton',frm).click(function(){
ColdFusion.Ajax.submitForm('form1', 
'/forms/frmProcess.cfm', 
frmSuccess, errorHandler);
return false;
});
});

function frmSuccess(text){
$('form#form1').clearForm();
frmPod_body.innerHTML = text;
}

 function errorHandler(code, msg){
 alert("Error!!! " + code + ": " + msg);
 }

This took the return page content and posted it to a  container.

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Azadi Saryev wrote:
> that is only true for CFFORM tag, not FORM tag
> 
> read here:
> http://www.coldfusionjedi.com/index.cfm/2007/8/5/Reminder-about-forms-and-ColdFusion-8-Ajax-Containers
> 
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com
> 
> 
> 
> Cutter (CFRelated) wrote:
>> Either way really. Here's the blurb out of the LiveDocs
>>
>> "The ColdFusion Ajax container tags, cfdiv, cflayoutarea, cfpod, and 
>> cfwindow, automatically submit any forms that they contain 
>> asynchronously. When the form is submitted, the result returned by the 
>> action page replaces the contents of the container, but has no effect on 
>> the rest of the page."
>>
>> Steve "Cutter" Blades
>> Adobe Certified Professional
>> Advanced Macromedia ColdFusion MX 7 Developer
>> _
>> http://blog.cutterscrossing.com
>>
>> Azadi Saryev wrote:
>>   
>>> i think you will find that using  instead of  (or 
>>> is it the other way around?) will do the trick.
>>> using one submits the form to cfdiv, the other replaces the main page
>>>
>>> ---
>>> Azadi Saryev
>>> Sabai-dee.com
>>> http://www.sabai-dee.com
>>>
>>>
>>>
>>>
>>> 
>>
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Submitting a form inside of cfdiv

2008-01-09 Thread Azadi Saryev
that is only true for CFFORM tag, not FORM tag

read here:
http://www.coldfusionjedi.com/index.cfm/2007/8/5/Reminder-about-forms-and-ColdFusion-8-Ajax-Containers

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



Cutter (CFRelated) wrote:
> Either way really. Here's the blurb out of the LiveDocs
>
> "The ColdFusion Ajax container tags, cfdiv, cflayoutarea, cfpod, and 
> cfwindow, automatically submit any forms that they contain 
> asynchronously. When the form is submitted, the result returned by the 
> action page replaces the contents of the container, but has no effect on 
> the rest of the page."
>
> Steve "Cutter" Blades
> Adobe Certified Professional
> Advanced Macromedia ColdFusion MX 7 Developer
> _
> http://blog.cutterscrossing.com
>
> Azadi Saryev wrote:
>   
>> i think you will find that using  instead of  (or 
>> is it the other way around?) will do the trick.
>> using one submits the form to cfdiv, the other replaces the main page
>>
>> ---
>> Azadi Saryev
>> Sabai-dee.com
>> http://www.sabai-dee.com
>>
>>
>>
>>
>> 
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Submitting a form inside of cfdiv

2008-01-09 Thread Cutter (CFRelated)
Either way really. Here's the blurb out of the LiveDocs

"The ColdFusion Ajax container tags, cfdiv, cflayoutarea, cfpod, and 
cfwindow, automatically submit any forms that they contain 
asynchronously. When the form is submitted, the result returned by the 
action page replaces the contents of the container, but has no effect on 
the rest of the page."

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Azadi Saryev wrote:
> i think you will find that using  instead of  (or 
> is it the other way around?) will do the trick.
> using one submits the form to cfdiv, the other replaces the main page
> 
> ---
> Azadi Saryev
> Sabai-dee.com
> http://www.sabai-dee.com
> 
> 
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Submitting a form inside of cfdiv

2008-01-09 Thread Azadi Saryev
i think you will find that using  instead of  (or 
is it the other way around?) will do the trick.
using one submits the form to cfdiv, the other replaces the main page

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Submitting a form inside of cfdiv

2008-01-09 Thread Steve Sequenzia
I am trying to be submit a form from within a cfdiv on a parent page. What I 
mean is I have a page that has the entire layout and everything in it but the 
for itself is actually on another page that is showing by using a cfdiv with a 
bind to the URL.

All of the form variables are on one page so it submits fine but I cannot 
figure out how to break out of the cfdiv after the form is submitted. Normally 
I submit to an action page and handle all my database inserts/updates then from 
there then just do a cflocation to the page I want it to land on. When I do 
that from the form that is inside of the cfdiv the landing page shows up inside 
of the original page. It makes sense that it would do that but does anyone have 
any idea how to get around this?

Any help would be great.

Thanks in advance. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


RE: Submitting a Form through email

2005-01-10 Thread Micha Schopman
This is prohibited due to security. Email clients block this. What you
can do is provide the client a link, which needs to be clicked to renew
their account.

Keep in mind to hash/encrypt the id of the client. I wouldn't like it if
someone could change the id in the address bar to renew my account.

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189800
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: Submitting a Form through email

2005-01-10 Thread Robert Bailey
Try using the method get and see if that works. My understanding is that
most, if not all, email clients will block form posts from an email. 


 Robert Bailey
Software Engineer
813-230-9967 \\ mobile
[EMAIL PROTECTED]
www.recruitmax.com
 
-Original Message-
From: Chad McCue [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 10, 2005 8:41 AM
To: CF-Talk
Subject: Re: Submitting a Form through email


  
  
   

 
  This email is to let you know that your account on has been
inactive
for 90 days.
  
  Please take a few seconds to answer the following questions.
 

   
    
   

 
  
   

 1. Would you like to re-register for another 90-days?

   
   
   
Yes
  
No
   
  
 

   
    
   

 

   
  
  
- Original Message - 
From: "Mark Drew" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, January 10, 2005 8:37 AM
Subject: Re: Submitting a Form through email


> What is the code in the html?
>
> MD
>
>
> On Mon, 10 Jan 2005 08:14:17 -0500, Chad McCue
> <[EMAIL PROTECTED]> wrote:
> > I have an email being sent out to expired accounts that is a small
form
to see if they would like to renew their account. The form that is in
the
email contains two questions and a hidden field carrying their acctID. I
am
having a problem submitting these fields, when the account receives the
email and answers the question and clicks the "Submit" button they land
on
the correct page but my form variables are undefined. Any ideas?
> >
> >
>
> 



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189798
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: Submitting a Form through email

2005-01-10 Thread Michael Traher
Can not see an obvious problem. I would change the target page to new
one called test.cfm that only contains the code 
and see if that works.  If it does then you need to start delving into
the code that runs between index.cfm and your 'reply90day' fuse code.

Since this is fusebox the variables should also be in the attributes scope.

HTH


On Mon, 10 Jan 2005 08:14:17 -0500, Chad McCue
<[EMAIL PROTECTED]> wrote:
> I have an email being sent out to expired accounts that is a small form to 
> see if they would like to renew their account. The form that is in the email 
> contains two questions and a hidden field carrying their acctID. I am having 
> a problem submitting these fields, when the account receives the email and 
> answers the question and clicks the "Submit" button they land on the correct 
> page but my form variables are undefined. Any ideas?
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189797
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: Submitting a Form through email

2005-01-10 Thread Chad McCue

  
  
   

 
  This email is to let you know that your account on has been inactive
for 90 days.
  
  Please take a few seconds to answer the following questions.
 

   
    
   

 
  
   

 1. Would you like to re-register for another 90-days?

   
   
   
Yes
  
No
   
  
 

   
    
   

 

   
  
  
- Original Message - 
From: "Mark Drew" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Monday, January 10, 2005 8:37 AM
Subject: Re: Submitting a Form through email


> What is the code in the html?
>
> MD
>
>
> On Mon, 10 Jan 2005 08:14:17 -0500, Chad McCue
> <[EMAIL PROTECTED]> wrote:
> > I have an email being sent out to expired accounts that is a small form
to see if they would like to renew their account. The form that is in the
email contains two questions and a hidden field carrying their acctID. I am
having a problem submitting these fields, when the account receives the
email and answers the question and clicks the "Submit" button they land on
the correct page but my form variables are undefined. Any ideas?
> >
> >
>
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189796
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: Submitting a Form through email

2005-01-10 Thread Mark Drew
What is the code in the html?

MD


On Mon, 10 Jan 2005 08:14:17 -0500, Chad McCue
<[EMAIL PROTECTED]> wrote:
> I have an email being sent out to expired accounts that is a small form to 
> see if they would like to renew their account. The form that is in the email 
> contains two questions and a hidden field carrying their acctID. I am having 
> a problem submitting these fields, when the account receives the email and 
> answers the question and clicks the "Submit" button they land on the correct 
> page but my form variables are undefined. Any ideas?
> 
> 

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189795
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


Submitting a Form through email

2005-01-10 Thread Chad McCue
I have an email being sent out to expired accounts that is a small form to see 
if they would like to renew their account. The form that is in the email 
contains two questions and a hidden field carrying their acctID. I am having a 
problem submitting these fields, when the account receives the email and 
answers the question and clicks the "Submit" button they land on the correct 
page but my form variables are undefined. Any ideas?



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189794
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: Preventing IE 6 from submitting a form on click of Enter

2002-04-30 Thread Bryan Love

how bout ...onclick="this.form.submit()"

+---+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+---+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
- Thomas Paine, The American Crisis



-Original Message-
From: Craig Dudley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 7:06 AM
To: CF-Talk
Subject: RE: Preventing IE 6 from submitting a form on click of Enter


Simplest thing to do is remove the submit button, and replace it with an
input type="button" that has an onclick to submit the form, something like.




-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 30, 2002 2:18 PM
To: CF-Talk
Subject: Preventing IE 6 from submitting a form on click of Enter

I have tried some code on IRT .org that is supposed to prevent IE from
submitting a form on hitting enter, however it is not working.

Can someone shoot me a snippet of code to prevent IE from submitting on
click of
enter.

Thanks in advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader
of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at the
email
listed above.



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Preventing IE 6 from submitting a form on click of Enter

2002-04-30 Thread David DiPietro


Do what you want in my function
and then
document.formname.submit();

David DiPietro
Systems Developer / Engineer
OSU College of Medicine & Public Health
Voice (614) 292-5960
Fax (614) 292-0745


-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 9:18 AM
To: CF-Talk
Subject: Preventing IE 6 from submitting a form on click of Enter


I have tried some code on IRT .org that is supposed to prevent IE from
submitting a form on hitting enter, however it is not working.

Can someone shoot me a snippet of code to prevent IE from submitting on click of
enter.

Thanks in advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader of
this message is not the intended recipient (or the employee or agent responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is prohibited.
If you have received this communication in error, please notify us at the email
listed above.


__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Preventing IE 6 from submitting a form on click of Enter

2002-04-30 Thread Craig Dudley

Simplest thing to do is remove the submit button, and replace it with an
input type="button" that has an onclick to submit the form, something like.




-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 30, 2002 2:18 PM
To: CF-Talk
Subject: Preventing IE 6 from submitting a form on click of Enter

I have tried some code on IRT .org that is supposed to prevent IE from
submitting a form on hitting enter, however it is not working.

Can someone shoot me a snippet of code to prevent IE from submitting on
click of
enter.

Thanks in advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader
of
this message is not the intended recipient (or the employee or agent
responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is
prohibited.
If you have received this communication in error, please notify us at the
email
listed above.


__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Preventing IE 6 from submitting a form on click of Enter

2002-04-30 Thread Larry Juncker

I have tried some code on IRT .org that is supposed to prevent IE from
submitting a form on hitting enter, however it is not working.

Can someone shoot me a snippet of code to prevent IE from submitting on click of
enter.

Thanks in advance

Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
[EMAIL PROTECTED]

CONFIDENTIALITY NOTICE
The information contained in this e-mail is intended only for the use of the
individual or entity to which it is addressed.  This e-mail may contain
information that is privileged, confidential, and/or personal. If the reader of
this message is not the intended recipient (or the employee or agent responsible
to deliver it to the intended recipient), you are hereby notified that any
dissemination, distribution, or  copying of this communication is prohibited.
If you have received this communication in error, please notify us at the email
listed above.

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Submitting a form only once, iow, preventing impatient user d ouble clicks.

2002-04-18 Thread Ryan Pieszak

Just a side note...
I just joined this list a few days ago, and I have to agree with Charles in
saying that the response time and actual helpfulness on this list is
top-notch.  I tip my hat to all of you.
Ryan Pieszak

-Original Message-
From: Charles Nahm [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 10:21 AM
To: CF-Talk
Subject: RE: Submitting a form only once, iow, preventing impatient user
double clicks.


>-Original Message-
>From: Angel Stewart [mailto:[EMAIL PROTECTED]]
>Oh! Oh!
>
>I know this one! I know this one!
>
>Someone helped me with this just the other day :)

Thank you to Angel, Diana, Justin, Thane, Larry and [EMAIL PROTECTED]

Unbelievably fast helpful people on this list.

Charles Nahm
Sonic Networks Inc.

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Submitting a form only once, iow, preventing impatient user double clicks.

2002-04-18 Thread Charles Nahm

>-Original Message-
>From: Angel Stewart [mailto:[EMAIL PROTECTED]]
>Oh! Oh!
>
>I know this one! I know this one!
>
>Someone helped me with this just the other day :)

Thank you to Angel, Diana, Justin, Thane, Larry and [EMAIL PROTECTED]

Unbelievably fast helpful people on this list.

Charles Nahm
Sonic Networks Inc.
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Submitting a form only once, iow, preventing impatient user d ouble clicks.

2002-04-17 Thread Dave Carabetta

>This should work to maintain type=submit:
>
>onClick="if(this.value == 'Generate Report'){
>this.value='Running Report...';return true;}else{return false};"
>class="submit">
>
>(remove line wraps in the onClick parameter)
>
>Ron Hornbaker
>Co-Founder, BookCrossing.com
>
>BOOKS JUST WANNA BE FREE! http://BookCrossing.com

Actually, I have it working for input type="submit" ... what I'm trying to 
figure out is why input type="button" for that code doesn't work in IE 6 and 
Netscape 6.x.

Thanks,
Dave.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Submitting a form only once, iow, preventing impatient user d ouble clicks.

2002-04-17 Thread Matt Robertson

Dave,

I'm doing exactly what you are this morning.  Of the three examples that
were given early on in the thread, I've settled on this one so far:



On my win2k/apache dev box it works in NN 6.2 and 4.77 as well as IE.

I do self-posting forms as well.  Sometimes I 
 to test if the page
is a form submission, and carry on processing from there.  That might
help you out on the self-testing thing.

--Matt Robertson--
MSB Designs, Inc.
http://mysecretbase.com

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Submitting a form only once, iow, preventing impatient user d ouble clicks.

2002-04-17 Thread Ron Hornbaker

This should work to maintain type=submit:



(remove line wraps in the onClick parameter)

Ron Hornbaker
Co-Founder, BookCrossing.com

BOOKS JUST WANNA BE FREE! http://BookCrossing.com



> -Original Message-
> From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 10:37 AM
> To: CF-Talk
> Subject: RE: Submitting a form only once, iow, preventing impatient user
> d ouble clicks.
>
>
> >Use javascript to disable the submit button once it's been clicked.
> >
> >I tend to use an input type="button" so idtio users pressing
> return when
> >they shouldn't, don't actually submit the form early.
> >
> > onclick="javascript:this.value='Please
> >Wait';this.disabled=1;document.forms[0].submit()">
> >
> >Should do the trick
> >
>
> OK, so I've been looking into this same problem myself and
> decided to create
> a test page with the examples posted. I'm having a strange
> problem and was
> hoping somebody could point out what I'm doing wrong.
>
> I almost always have my forms post to themselves, and then test for the
> existence of the submit button's name. If I use:
>
>  onClick="if(this.value == 'Generate Report') this.form.submit();
> this.value='Running Report...';" class="submit">
>
> the page submits to itself, but the existence check fails:
>
> 
>Run the processing code.
> 
>
> However, if I change the input type to "submit" the page
> submits just fine
> and runs the processing code. Why would the submit button's
> name not exist
> if the type="button", but it does exist if I change it to type="submit"?
>
> To further complicate the issue, if I have the input
> type="submit" and use
> the this.disabled = 1; feature, the processing does not occur either.
> Removing this.disabled processes the form perfectly.
>
> I'm testing in IE 6, if that makes a difference. I'm gonna go
> try Nutscrape
> now and see what happens.
>
> Any thoughts?
>
> Thanks,
> Dave.

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: submitting a form with out a button? unload

2001-11-12 Thread Bryan Love

Actually, it sounds like this would be better fixed by changing your
architecture.  If you need to retain form information then stack the action
page on top of your form page.  That way you can fall through and re-display
the form if validation fails, or you can insert into the db and cflocate if
the fields are ok.  In fusebox it would look like this:










If you aren't fond of fusebox your form page might look like this:







mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 8:38 AM
To: CF-Talk
Subject: submitting a form with out a button? unload


i am sure this has been done a lot but cant find it.

how can i submit a form with out using a button.
using an unload event?


i was going to use cflocation on an action page, but cant pass my 
variable back to another page

thanks

-paul

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: submitting a form with out a button? unload

2001-11-12 Thread Paul Ihrig



found it

-paul



-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 11:38 AM
To: CF-Talk
Subject: submitting a form with out a button? unload


i am sure this has been done a lot but cant find it.

how can i submit a form with out using a button.
using an unload event?


i was going to use cflocation on an action page, but cant pass my 
variable back to another page

thanks

-paul

~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: submitting a form with out a button? unload

2001-11-12 Thread Critz

oi Paul!!

Click  Here  to  Submit.


-- 
Critter, MMCP
Certified ColdFusion Developer

Crit[s2k] - 


-
Monday, November 12, 2001, 11:37:44 AM, you wrote:

PI> i am sure this has been done a lot but cant find it.

PI> how can i submit a form with out using a button.
PI> using an unload event?


PI> i was going to use cflocation on an action page, but cant pass my 
PI> variable back to another page

PI> thanks

PI> -paul
PI> 
~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



submitting a form with out a button? unload

2001-11-12 Thread Paul Ihrig

i am sure this has been done a lot but cant find it.

how can i submit a form with out using a button.
using an unload event?


i was going to use cflocation on an action page, but cant pass my 
variable back to another page

thanks

-paul
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists