Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Several submit buttons in HTML page
Message
 
 
To
02/06/2015 12:32:36
General information
Forum:
HTML5
Category:
HTML
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01620499
Message ID:
01620534
Views:
31
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform