How to disable a button once submit the form?
Hi guys,
I need to disable the button instantly once user submit their registration. Should I implement this using actionListener and ActionEvent? Pls help, Thanks !
regards,
kmthien
Speaking about the client-side, you can use cookies to stop the submission.
This is a simplest, but not too much intelligent example:
<script language="javascript">
function preventDoubleSubmit() {
if (document.cookie.indexOf('submitted')> -1)
return false;
document.cookie="submitted=yes";
</script>Note, that clicking the Refresh (or Back/Forward buttons) user has no more chance to receive the next page in the normal page flow.
Probably, the server-side way is more suitable for this situation. Search for 'postBack' on this forum. As I remember, it was a discussion here recently.
Similar Messages
-
How to disable a button once it has been clicked
Hi!
I need to disable a button once the user has clicked it! I also need the colour of the button to change once it has been clicked as well (I need it to just grey out - not sure if this can be solved using actionscript??)
The only method I could think of of accomplishing this is to put each button in their own UILoader, but I'm hoping there is a simpler method!?Here's what you do:
1. Open the Components panel and drag a button on the Stage (do NOT create button symbol).
2. For now, give it an instance name of "aButton" - that's what the code below uses. However, you probably want to use a different name. Also, you can open up the Components Inspector panel (CS4) to change the label on the button - use the Component Parameters section on the Properties panel if you have CS5.
3. In the Actions panel use this code:
aButton.addEventListener(MouseEvent.CLICK, disableButtonHandler);
function disableButtonHandler(event:MouseEvent):void
//do whatever (gotoAndStop, fscommand...)
aButton.enabled = false;
4. Test it. If it was done correctly (I tested it on my computer), the button should deactivate and go greyish when clicked.
Make sure you use a Button Component. I don't know it this code would work with a Button or a MovieClip symbol. -
How to disable maximize button of the java.awt.Window ????
How to disable maximize button of the java.awt.Window !!!!
Help neededHow to spam the forum with the same fuqin question. Please get lost.
-
Disable Report Button Once Clicked.
Apex 3.2
In my application I have been able to disable html buttons, once the user has clicked them, using
the following in the url of the button.
javascript:this.disabled=true;this.value='Creating DC...';doSubmit('SUBMIT');
I have several updateable reports, that contain buttons. I would like to disable these buttons, when clicked,
but do not know how.
At the moment the sql in the report for the button is
'<input type="button" name="map" value="Add Mapping" onclick="mapdc(''mapdc'','||whid||')">' map
and I have some javascript in the page header
<script language="JavaScript" type="text/javascript">
function mapdc(Request, whid){
var answer=confirm("Do you really want to map Whid " +whid+ " to Gwhid " +$v('P39_GWHID')+" ?");
if(answer==true) {
$x('P39_WHID').value = whid;
doSubmit(Request);
</script>
Any ideas ?
GusThink I may have sorted this out,
Changed my javascript to
<script type="text/javascript">
function runjob(request,jobid){
var answer=confirm("Do you really want to run job id "+jobid+" ?");
if(answer==true) {
$x('P3_JOBID_2').value = jobid;
$x_disableItem('P3_RUN_JOB',true);
$x('P3_RUN_JOB').value = 'Running Job...';
doSubmit(request);
</script>
and my sql to
'<input type="button" name="run_job" value="Run Job" id="P3_RUN_JOB" onclick="runjob(''run_job'','||jobid||');">' end run_job
Gus -
How To Disable Delete Button on AR Customer Search
hi Guru,
How to Disable the Delete Button of AR Customer Search Form.Hi;
Duplicate post, please make post once
How To Disable update Button on AR Customer
Regard
Helios -
How to disable hold button in purchase order creation.
hi
how to disable hold button in purchase order creation.Select single * from VBAK where clause
---It fetches single record from the database, based on the condition you specified in the where clause.
Where as select * from VBAK up to 1 row
---Fetches first record if the condition specified in the where clause is satisfied, otherwise it doesn't fetch any record -
How to disable save button on selection screen (1000) run from other report
Hi Experts,
Can any one let me know how to disable save button on selection screen (1000) run from other report.
Say I am running from report R1 which submits report R2, but the save button should be disabled on
report R2(selection screen 100).
Thanks in advance.
Regards
RP.Hi RPReddy16 ,
Try this:
DATA :BEGIN OF t_extab occurs 0,
fcode like rsmpe-func,
END OF t_extab.
REFRESH T_EXTAB.
MOVE 'SAVE' TO T_EXTAB-FCODE.
APPEND T_EXTAB.
CLEAR T_EXTAB.
SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
Regards,
José -
How to disable Setting button in Tools - Options - Advanced - Network from windows registry?
Dear support,
Now, my office use Firefox as default browser to access WebServer. And there are some policy that users must use ProxyServer. I do not want user change proxy setting in Firefox. How to disable Setting button in Tools - Options - Advanced - Network from windows registry?
Thank you.
TrekyYou can not use the Windows registry to disable items in Firefox. This link shows how to lock down Firefox proxy settings, change the values to suit your needs:
http://www.stbernard.com/ip5kb/iPrism/WhatsNew/50SupportFiles/SupportFiles/IP0460.htm
One minor variation, in step 4 instead of adding that line to all-js, you can create a file called ''local-settings.js'' containing the line shown and save the file in the same folder as all.js -
How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution???
thanks before
best regard
-ariansyah-You can disable or remove that button, but that won't prevent users from making the changes on the about:config page directly.<br />
You can lock the related network.proxy prefs if you do not want users to change the connection settings.
See:
*http://kb.mozillazine.org/Locking_preferences
* http://kb.mozillazine.org/network.proxy.type
* http://kb.mozillazine.org/network.proxy.%28protocol%29
* http://kb.mozillazine.org/network.proxy.%28protocol%29_port -
Hy Experts,
I am a Basis guy and I want to know how to disable a button from any screen.
Basically I have to Disable a button "Save as Completed" from the screen of t.code MIR7.
Is there any way to hide it. If it is then please let me know, I will be thankful to you.Dear Aplesh,
Check this:
It will give you the description along with screen-shots.
http://husnie.wordpress.com/
Regards,
Rakesh -
How to disable minimize button(icon) of jframe
how to disable minimize button(icon) of jframe
HELP!
I need to do a similar thing. Along with a couple other things.
I was able to control some windows thru a unix window manager like I would for Motif (the use the window name of AWTapp or AWTdialog are recognized when doing xwininfo) That is all I can seem to get. Nothing changes this.
Does anyone know how?
Anyway. mwmDecorations and mwmFunctions settings appear to allow setting of some of the windows. But I need control 100%of the time.
I need to disable the CLOSE button in all java windows or find a way that the window manager event can get back to the java application. Currently it is not recognized.
In some windows I need other items disabled such as SIZE & MAXIMIZE. -
Using a "Button" to submit the user entered data as a PDF into Email
I have created a form in which the user fills out the form and clicks a "Button" to submit the data via PDF(attached to an email) to a specific email address (mailto:[email protected]). When I email the blank to coworkers it does not allow the functon to work. Any assistance would be greatly appreciated!
Also if you have the time is there a way to define the order of data when user's submit via xml?That did it. Thank you greatly!
Pete Nappi Jr.
A.N.A. Logistics, Inc.
631-981-4339 Ext:110
Please use www.goodsearch.com and
donate to WLIX radio or your favorite
charity with every internet search... -
How to Disable client side validation for the message text input
Hi,
I have scenario where i need to by pass the client side validation for a message text input
Scenario is
I have a message text input field(say XYZ), i set the max length for the item as 20
Now when im trying to enter the greek characters into it, it is allowing me to enter till 20 characters
But when i try to submit the form ..my client side validation is firing..
The Error says the XYZ is too long
The problem is, in greek each character takes two bytes.(In english it is only 1).While entering the content it allowing 20 characters and when validating it is checking for bytes(if we enter in greek the length will be 40 bytes not 20)
I cannot increase the max length .coz i have restrict the character length to 20 only.(english or Greek).
Please help me in this regard.
Regards
Sandeep.Thanks for the information.But we dont have any option either declaratively or programatically to disable the client side validation for the message text input..I referred java docs ..i dint find any method which does..
Correct me if im wrong -
How to disable other users from changing the status
Hi,
The status entry field can be changed irrespective of ownership in Documents.
I was able to change the status on the document created by other user.
Example: The status of document was In-Work. The document owner was X. But I was able to change it to Inspection Check.
How to disable other users from changing the status?
Regards,
ShashiThis is a frequently discussed topic.Please use the search feature.It has been discussed in [previous posts|CV01N: Filter documents by role; in various contexts.
Regards,
Pradeepkumar Haragoldavar -
How can I submit the form back to the server, then reload the page again
Hi
I have 2 comboboxes, one is already populated with data by the time the page is loaded. The second combobox will be populated depending on the value chosen from the first combobox
I need to know how can submit the form to go back to the server with the selected value from the first combobox, get some data from the database and then regenerate the whole page again filling the second combobox with the collected data
for example, here s my select tag:
<select name="country" id="firstBox" onchange="populateSecondList()">
<option value="" SELECTED>
</select>
<select name="city" id="firstBox">
<option value="">
</select>
what should I have to add in the retrieveSecondOptions() function?declare a second combo box in a iframe and to iframe tag there is attribute to which you can sepcify the file name like one.jsp
now call onchange event on first combo box and forward request to one.jsp
Maybe you are looking for
-
Help!!
-
How can we call a OSB proxy service from a BPEL process?
Hi, I want to call a OSB proxy service from a BPEL process. Can you please explain me the procedure?
-
Console.war as default web application...
Hi, I tried to add the console.war as my default web application for my Admin server, but when restarting the server it complained with the following error: The WebLogic Server did not start up properly. "Exception raised: weblogic.management.configu
-
Approval WorkFlow with custom steps
Hi guys, I need to create, using SPD, a simple workflows with this Outcome step Accepted e Approved so, for example If I have these users in My WF UserA, UserB I want that UserA change the WF step to Accepted and then UserB close the WF with Approved
-
I installed a second hard disk to use as a backup a couple of years ago and it has always worked perfectly. Now it doesn't show up. What can I do?