Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Several submit buttons in HTML page
Message
De
03/06/2015 13:10:16
 
 
Information générale
Forum:
HTML5
Catégorie:
HTML
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01620499
Message ID:
01620587
Vues:
44
This message has been marked as a message which has helped to the initial question of the thread.
>I was hoping that adding a focus on the button prior to clicking will solve my problem, but it seems not :(
>
>Here is my current code:
>
>
>if (lnKey==13)
>   {
>	  var btn = document.getElementById("btnRemoveOverdue");
>	  if (btn)
>	  {
>		btn.focus();
>		btn.click();
>	  }
>
>What exactly do you suggest in order to get that btnRemove inside the post string?

You need to update the Form tag Action attribute to add any query string you need to be posted.

So, if enter key is pressed, when that function is called, simply do something like:
document.getElementById("MyForm").action=document.getElementById("MyForm").action+"MyQueryString"
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform