Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Several submit buttons in HTML page
Message
 
 
À
02/06/2015 12:32:36
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:
01620534
Vues:
30
>>We have a C++ application using some browser control to display pages generated by VFP application. In that generated page there are a few buttons with the SUBMIT type. My question is - is it possible to make desired button to react properly on the Enter key? Is it an issue with the browser control in C++?
>
>The onKeyPress event of the textbox control should help in that direction. Basically, if an Enter key on the first name should submit a particular post on a button, then you can use that approach.

Can you show some related code? I think this may be an approach we can take.

Say, this is part of the current HTML:
<INPUT TYPE="hidden" NAME="txtAuthAction" ID="txtAuthAction" VALUE="RemoveOverdue">
<INPUT TYPE="hidden" NAME="txtAuthScan"   ID="txtAuthScan"   VALUE="<<This.cAuthItem>>">
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=90% align=right>
<TR><TD WIDTH=25%> </TD>
<TD WIDTH=25%> </TD>
<TD WIDTH=20% ALIGN=right
 STYLE='font-size:10.0pt;font-family:Arial'>Password: </TD>
  <TD><INPUT TYPE="PASSWORD" NAME="txtRemoveOverduePWD" ID="txtRemoveOverduePWD" WIDTH=30></TD>
  <TD ALIGN=left><INPUT NAME="btnRemoveOverdue" CLASS='button' ID="btnRemoveOverdue" TYPE="submit" VALUE="Remove Overdue"></TD>
</TR></TABLE><BR/><BR/>
So, when we enter password in that password textbox and hit Enter key, the button should fire and submit the form.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform