Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
rlafleur #1
How to Click Submit Button on keypress?
Can anyone explain how I can 'click' a cfform ty[pe='submit' button by using the keyboard? I get focus but I have to click the button, pressing the enter key does nothing.
rlafleur Guest
-
Submit button
I have a web form with a few text fields some validataion and a submit button. When I click the submit bittin the serverside event does not... -
WWW::Mechanize click($button) not finding right button to click
Based on wise advice from participants of this forum, I rewrote my web automation script using WWW::Mechanize. The script now successfully logs... -
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl.
Hello I have the following situation: (everything is dynamic (controls.add)) 1. Button.Init { WasButtonClickFired = true } 2.... -
[PHP] using submit button and PHP-HELP
thanx for your help, Ive got flu and all these small things seem to be escaping my eyes. I just want to ask you a small question: If i want this... -
value submit button
You can get the button value use code below: <?php echo $_POST;?> <form method="post"> <input type="submit" name="submit" value="submit1">... -
michin11 #2
Re: How to Click Submit Button on keypress?
Anyone? I am having the same issue..
michin11 Guest
-
Bartjan Meier #3
Re: How to Click Submit Button on keypress?
Hi, I had the same problem and found a solution. In the cfinput field I just
check with actionscript if the ENTER key is pressed. Of course this will only
work in single line text-input fields. <cfinput type='text' name='Name'
label='Name' onKeyDown='if(Key.isDown(Key.ENTER)) {submitForm()}'> I never
knew that onKeyDown would work, but with IE6 it works fine. Please confirm if
it works for you!
Bartjan Meier Guest
-
yitian #4
Re: How to Click Submit Button on keypress?
Hi, I've tried your method and it works, but I still got some issues... I'm
using your code on a login screen. The screen has some validation on blank
username and password. If I hit enter without username/password, an alert box
will show up. Everything's fine except when I hit enter more than once, the
screen will seem to hang as the alert box won't go away no matter how many
times I clicked on 'OK'. Is it only me that's having the problem?
yitian Guest
-
mooresm #5
Re: How to Click Submit Button on keypress?
I think this is a major shortcoming of Flash forms if the user must always use
a mouse click to submit a form. I've tried the method here, which works pretty
well, except that means putting it in every text field on the screen. And as
I've found, this causes the Submit field to not be included in the form fields
passed, so if you're performing code based on the value of the Submit field
(where I have a tabbed form with three of them), that code will not work.
mooresm Guest
-
Bartjan Meier #6
Re: How to Click Submit Button on keypress?
We only used it on a form that has only 1 textfield to input, so there we have
no problem. I tested the validation issue, and what's happening is that the
form 'remembers' the last keypress and immediately submits the form again. You
can always ignore the validation with username.enabled=false; before the
submitForm(); command (if for exampleusername is required). But this will
require to validate the form after it's been send. We use this when we have
different forms within one form (each tab has a different role). Depending on
the tab we disable validation for the fields of the other tabs. But I'm afraid
this will not help in your case...
Bartjan Meier Guest



Reply With Quote

