Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Several submit buttons in HTML page
Message
 
 
To
03/06/2015 08:22:02
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:
01620572
Views:
34
>>There seems to be a difference between when I manually click on the button or either try to use form's submit or call click() event of the button in code.
>>
>>In the first case scenario, the passed string has
<btnRemoveOverdue>Remove+Overdue</btnRemoveOverdue>
inside it and in the other case it doesn't.
>>
>>I am wondering if that string in the post string comes from some code in C++ application or it's a standard browser behavior? Is it possible to somehow add this part to the passed post string?
>
>Yes, a post can be a combination of FORM action attribute plus the form fields. So, you can adjust the FORM action attribute to be something like MyForm.aspx?Session=1,FirstName=Test and those would be added to the post as well.

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?

Thanks again.
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